fix(build): unbreak production build — /hilfe/transkription prerender unreachable behind /login [SUPERSEDED by #486] #485
Reference in New Issue
Block a user
Delete Branch "fix/issue-472-prerender-entries"
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?
Closes #472
Problem
npm run buildexits non-zero because/hilfe/transkriptionis declaredprerender = truebut the SvelteKit prerender crawler is intercepted byhooks.server.tsbefore it can reach the route. The build logs:Fix
Option A from the issue — add an explicit
prerender.entriesdeclaration insvelte.config.jsso SvelteKit renders the route directly without needing to crawl to it:Also removes the misleading comment in
+page.tsthat claimedhooks.server.tsguards prerendered static files. It does not — the auth hook only runs for SSR requests; prerendered HTML is served as a static file by the reverse proxy.CI gate
Adds
npm run buildafter the test step in theunit-testsCI job. Without this gate, the fix has no regression protection — a futureprerender = trueroute that becomes unreachable behind auth would fail silently again.Test plan
npm test)npm run buildexits 0 and/hilfe/transkription.htmlis produced🤖 Generated with Claude Code
fix(build): unbreak production build — /hilfe/transkription prerender unreachable behind /loginto fix(build): unbreak production build — /hilfe/transkription prerender unreachable behind /login [SUPERSEDED by #486]Pull request closed