fix(frontend): serve SPA documents for /vote (Legal return 404) #19
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/issue-8-spa-fallback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
https://vote.cl8y.com/voteis a 404 after Legal Accept (full document load of a client-only route)./already returns 200 HTML./,/new,/:idon this dedicated host so Legal return to/works even on a root-only edge./vote*stay as aliases.try_files $uri /index.htmlis the real deep-link fix (O8). Image HEALTHCHECK probes/voteand/new. CI jobtest:frontend-spa-fallbackasserts 200 HTML for app paths and 404 for missing/assets/*.deploy/docker/frontend.nginx.conf(or an equivalenttry_files) and livecurl -sI https://vote.cl8y.com/voteis 200.Related: #8 · #7 · #5
Test plan
cd frontend && npm test(46) — allowlist, route flatten, prod guardscd frontend && npm run test:e2e(7, 5 workers) —/and/vote*hard navigationsh deploy/docker/test-frontend-spa-fallback.sh—/vote200 HTML,/assets/missing.js404,X-Frame-Options: DENYcurl -sI https://vote.cl8y.com/vote→ 200curl -sI https://vote.cl8y.com/new→ 200;curl -sI https://vote.cl8y.com/assets/missing.js→ 404/vote/newand a proposal URL/and/votestill open; connected unsigned still fail-closedVITE_*BSC RPCmentioned in commit
e2e941e998mentioned in commit
b33da5edf0mentioned in issue #8
mentioned in issue #9
mentioned in issue #7