Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@remix-run/cloudflare-pages doesn't respect vite base or remix basename setting #10006

Open
gerbyzation opened this issue Sep 19, 2024 · 0 comments

Comments

@gerbyzation
Copy link

Reproduction

Repro: https://github.com/gerbyzation/repro-remix-cloudflare-pages-assets-ignore-basename

  1. pnpm install
  2. pnpm build
  3. pnpm start
  4. visit http://localhost:8788/my-basename. The static files will 404

System Info

System:
    OS: macOS 14.6
    CPU: (10) arm64 Apple M1 Pro
    Memory: 79.22 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.17.0 - ~/.local/share/mise/installs/node/20.17/bin/node
    npm: 10.8.2 - ~/.local/share/mise/installs/node/20.17/bin/npm
    pnpm: 8.15.9 - ~/.local/share/mise/installs/pnpm/8/bin/pnpm
  Browsers:
    Chrome: 129.0.6668.58
    Safari: 17.6
  npmPackages:
    @remix-run/dev: ^2.12.0 => 2.12.0 
    @remix-run/node: ^2.12.0 => 2.12.0 
    @remix-run/react: ^2.12.0 => 2.12.0 
    @remix-run/serve: ^2.12.0 => 2.12.0 
    vite: ^5.1.0 => 5.4.6 ```

Used Package Manager

pnpm

Expected Behavior

Static files to be served on the specified base(name)

Actual Behavior

Static files 404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant