Skip to content

feat(showcase): serve a real /health instead of the SPA fallback - #51

Merged
vreshch merged 1 commit into
masterfrom
feat/showcase-health
Aug 10, 2026
Merged

feat(showcase): serve a real /health instead of the SPA fallback#51
vreshch merged 1 commit into
masterfrom
feat/showcase-health

Conversation

@vreshch

@vreshch vreshch commented Aug 10, 2026

Copy link
Copy Markdown
Member

/health returned index.html. An SPA fallback answers 200 on every path, so the estate console could only record the showcase as reachability - proof that nginx is up and nothing more, however dead the bundle behind it.

Now an exact-match location, declared before the fallback so try_files can never swallow it, serving a payload baked at image build:

{"success":true,"data":{"status":"ok","service":"agentage-ds","commit":"<sha>","buildTime":"<iso>"}}

That also makes the showcase report which commit it serves - it previously reported no version at all, so drift was undetectable.

No uptime/instance/checkedAt: a static file cannot measure them, and a frozen checkedAt is precisely the "something in front is serving a cached copy" signal the estate health contract relies on. Omitted beats fabricated.

The container HEALTHCHECK now probes /health rather than /, so it fails when the bundle is missing instead of passing on index.html.

Verified against the built image: envelope + application/json + no-store on /health; / and client-side routes unaffected.

/health returned index.html. An SPA fallback answers 200 on every path, so the
estate console could only record it as 'reachability' - proof that nginx is up
and nothing more, however dead the bundle behind it.

Now an exact-match location, declared before the fallback so try_files can
never swallow it, serving a payload baked at image build. That also makes the
showcase report WHICH commit it serves; it previously reported no version at
all, so drift was undetectable.

No uptime/instance/checkedAt: a static file cannot measure them, and a frozen
checkedAt is precisely the 'something is serving a cached copy' signal the
estate health contract relies on. Omitted beats fabricated.

The container HEALTHCHECK now probes /health rather than /, so it fails when
the bundle is missing instead of passing on index.html.

Verified against the built image: envelope + application/json + no-store on
/health, SPA and client-side routes unaffected.
@vreshch
vreshch merged commit 62d5de1 into master Aug 10, 2026
2 checks passed
@vreshch
vreshch deleted the feat/showcase-health branch August 10, 2026 23:47
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