Skip to content

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

Open
@gerbyzation

Description

@gerbyzation

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions