feat(shadow): scaffold node-backend blog shadow spoke (WS-5)#216
Draft
Jesssullivan wants to merge 4 commits into
Draft
feat(shadow): scaffold node-backend blog shadow spoke (WS-5)#216Jesssullivan wants to merge 4 commits into
Jesssullivan wants to merge 4 commits into
Conversation
Add an env-selectable SvelteKit adapter so the same source can produce
either the frozen static production artifact (default) or a tailnet-only
node-backend shadow image.
- svelte.config.js: BLOG_ADAPTER=node selects @sveltejs/adapter-node;
default (and production) stays @sveltejs/adapter-static, unchanged.
- Containerfile.node: multi-stage node:22-alpine image (tini PID 1,
non-root uid 1000, PORT=3000) that builds with BLOG_ADAPTER=node and
runs node build/index.js.
- src/routes/healthz/+server.ts: non-prerendered liveness/readiness
endpoint (200 {status:'ok'}); absent from the static artifact,
live only under the node adapter.
- docs/blog-node-shadow.md: operator surface.
Shadow-only. Production (transscendsurvival.org) remains adapter-static
and FROZEN; static build output is unchanged. pnpm-lock regeneration
also corrects a pre-existing dompurify 3.4.7 -> ^3.4.11 range violation.
Refs WS-5, node-shadow ruling 2026-07-05.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Node-backend blog SHADOW spoke — SCAFFOLD (draft, operator-gated)
Scaffolds a tailnet-only node-backend shadow of the blog without touching production. Per the node-shadow recon ruling (2026-07-05): scaffold now; the production blog stays
adapter-staticand FROZEN —transscendsurvival.orgis not touched by this PR.What this adds (all additive)
svelte.config.js— adapter is env-selectable:BLOG_ADAPTER=node→@sveltejs/adapter-node; default (and production) stays@sveltejs/adapter-static.adapter-staticis not removed; prerender/config for the static path is intact.Containerfile.node— multi-stagenode:22-alpineimage mirroring the epp adapter-node pattern:tinias PID 1, non-root uid 1000,ENV PORT=3000,EXPOSE 3000, builds withBLOG_ADAPTER=node, runsnode build/index.js.src/routes/healthz/+server.ts—prerender = false,GET→200 {status:'ok'}. Non-prerendered, so it is absent from the frozen static artifact (nothing links it;strict:false) and live only under the node adapter.docs/blog-node-shadow.md— operator surface.@sveltejs/adapter-nodeadded to devDependencies;package-lock.json+pnpm-lock.yamlupdated. The pnpm-lock regen also corrects a pre-existingdompurify 3.4.7 → ^3.4.11range violation (the committed pnpm-lock did not satisfy package.json).Verification (local)
npm run build(default/static path) → exit 0,Using @sveltejs/adapter-static,build/index.html+build/404.htmlpresent, nobuild/index.js. The non-prerendered/healthzendpoint does not break the static build.BLOG_ADAPTER=node npm run build→ exit 0,Using @sveltejs/adapter-node, producesbuild/index.js.Scope / safety
adapter-staticand FROZEN; the static build output is byte-unchanged.tofu/stacks/jesssullivan-blog-node-shadow) lands in a siblingjesssullivan-infradraft PR.Refs WS-5, node-shadow ruling 2026-07-05.