Which project does this relate to?
Start
Describe the bug
SPA (single-page app) mode isn't able to the shell properly locally or on Cloudflare Pages. This is because Pages expects the shell at /index.html and doesn't appear to accept a redirect.
Your Example Website or App
tbc
Steps to Reproduce the Bug or Issue
As per directions in docs for SPA mode
- Configuring SPA mode
- Basic Redirects Example
- Shell Mask Path
Expected behavior
SPA shell is transparently loaded when accessing the site root on a local or Cloudflare Pages build.
Screenshots or Videos
No response
Platform
- Start Version: 1.133.27
- OS: N/A, though I use Ubuntu 24.04 for dev env
- Browser: N/A
- Bundler: vite
- Bundler Version: 7.1.12
Additional context
It's possible that using a dynamic routing for the root path is causing or aggravating the issue. For example:
/routes/$id.tsx
Which project does this relate to?
Start
Describe the bug
SPA (single-page app) mode isn't able to the shell properly locally or on Cloudflare Pages. This is because Pages expects the shell at /index.html and doesn't appear to accept a redirect.
Your Example Website or App
tbc
Steps to Reproduce the Bug or Issue
As per directions in docs for SPA mode
Expected behavior
SPA shell is transparently loaded when accessing the site root on a local or Cloudflare Pages build.
Screenshots or Videos
No response
Platform
Additional context
It's possible that using a dynamic routing for the root path is causing or aggravating the issue. For example:
/routes/$id.tsx