Skip to content

hotfix: serve /stats SPA shell on showcase server (was 404 in prod)#51

Merged
LakshmanTurlapati merged 1 commit into
mainfrom
hotfix/server-stats-spa-shell
May 15, 2026
Merged

hotfix: serve /stats SPA shell on showcase server (was 404 in prod)#51
LakshmanTurlapati merged 1 commit into
mainfrom
hotfix/server-stats-spa-shell

Conversation

@LakshmanTurlapati

Copy link
Copy Markdown
Collaborator

Summary

Quick task 260514-1nv shipped the `/stats` Angular page with `RenderMode.Client` but missed updating `showcase/server/server.js`'s exact-match whitelist (which serves the SPA shell for `/dashboard`). v0.9.69 deploy went green, but `https://full-selfbrowsing.com/stats\` returned 404 on first hit.

Two-line fix in `showcase/server/server.js` — adds `/stats` to:

  1. The build-not-found 503 guard (consistent with /dashboard).
  2. The exact-match SPA-shell serve branch (mirrors /dashboard pattern verbatim).

`/stats/*` (trailing path) still falls through to 404 — same Easter-egg posture (footer link to bare `/stats` is the only entry).

Test plan

  • Local: `npm test` exit 0
  • CI all-green
  • Post-deploy: `curl -sI https://full-selfbrowsing.com/stats\` returns 200 + the SPA index.html (with the chart.js lazy chunk fetched client-side)
  • Post-deploy: `/stats/foo` (trailing path) still 404 (Easter-egg invariant)

Quick task 260514-1nv shipped the /stats Angular page with RenderMode.Client
but missed updating server.js's exact-match whitelist (which serves the SPA
shell for /dashboard). On v0.9.69 deploy to main, /stats returned 404 from
fly.io until this fix.

Mirrors the /dashboard pattern verbatim. /stats/* (trailing path) still falls
through to 404 — same Easter-egg posture (footer link to bare /stats is the
only entry).
@LakshmanTurlapati LakshmanTurlapati merged commit 405b3cf into main May 15, 2026
8 checks passed
@LakshmanTurlapati LakshmanTurlapati deleted the hotfix/server-stats-spa-shell branch May 15, 2026 00:07
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