Skip to content

Commit 9a2a820

Browse files
pescnclaude
andcommitted
fix: add prerender entry pages for SPA static function cache
The SPA requires __tsr/staticServerFnCache/ entries generated during prerender for each route's static server functions. The root page (/) is a JS redirect with no crawlable links, so even with crawlLinks enabled, only / was prerendered. Add /en and /zh as explicit entry points so the prerender crawls all doc pages from sidebar navigation and generates complete static function cache entries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2b6bbd9 commit 9a2a820

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default defineConfig({
2828
crawlLinks: true,
2929
},
3030
},
31-
pages: [],
31+
pages: [{ path: '/en' }, { path: '/zh' }],
3232
}),
3333
react(),
3434
],

0 commit comments

Comments
 (0)