Skip to content

Fix page refresh 404s with wildcard frontend fallback - #381

Merged
exe-dev-github-integration[bot] merged 1 commit into
mainfrom
fix/spa-refresh-fallback
Nov 11, 2026
Merged

exe-dev-github-integration[bot] merged 1 commit into
mainfrom
fix/spa-refresh-fallback

Conversation

@asselstine

Copy link
Copy Markdown
Collaborator

Refreshing frontend routes such as /projects/:id/runs and /projects/:id/settings returns 404 because the Worker maintains a stale page allowlist. Serve the frontend entry for GET/HEAD requests outside reserved backend and asset namespaces, letting the frontend router handle page matching and its not-found screen.

Preserve API, health, OAuth, callback, webhook, internal, MCP and asset routing, with explicit exceptions for browser auth screens. Update unit/runtime regressions and public deployment verification to require wildcard fallback for new and nested page paths.

Validation: ran root npm test with Node 24.12.0 and npm 11.19.0 against isolated local PostgreSQL. All backend checks, compiled app/API integration, and six functional browser checks passed. Frontend unit checks had 77 passes, one skip, and one unrelated failure: all-runs status header supports multi-select filtering, independent sorting and clearing (packages/app/test/runs.browser.test.mjs:91). It also fails when rerun alone; that test serves the frontend through its own server and mocks API requests without using the changed Worker routing. git diff --check passed.

@asselstine
asselstine force-pushed the fix/spa-refresh-fallback branch from dfb2dc9 to 9594a35 Compare November 11, 2026 17:25
@exe-dev-github-integration
exe-dev-github-integration Bot merged commit b994f70 into main Nov 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant