0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
router/e2e
Tanner Linsley d6371529b5
fix: write static server function cache to correct output directory with Nitro (#6940)
* fix: write static server function cache to correct output directory with Nitro

TSS_CLIENT_OUTPUT_DIR was baked in via Vite's define at config time, before
Nitro's configEnvironment hook changed the client build.outDir. This caused
staticServerFnCache files to be written to dist/client/ instead of
.output/public/.

- Remove TSS_CLIENT_OUTPUT_DIR from compile-time define in start-plugin-core
- Set it as a runtime env var in prerender.ts using the resolved output dir
- Guard server-side cache writes on TSS_CLIENT_OUTPUT_DIR being set
- Add e2e test for static server functions with Nitro

* fix: remove dynamic Link to nonexistent route to fix tsc --noEmit
History 2026-03-16 16:56:29 -06:00
..
e2e-utils testing(vite-ecosystem-ci): add vite as direct dev depencency (#6709) 2026-02-20 01:58:27 +01:00
react-router chore: generate route-tree for all sandboxes 2026-03-14 23:28:51 +13:00
react-start fix: write static server function cache to correct output directory with Nitro (#6940) 2026-03-16 16:56:29 -06:00
solid-router chore: generate route-tree for all sandboxes 2026-03-14 23:28:51 +13:00
solid-start chore: generate route-tree for all sandboxes 2026-03-14 23:28:51 +13:00
vue-router chore: generate route-tree for all sandboxes 2026-03-14 23:28:51 +13:00
vue-start chore: generate route-tree for all sandboxes 2026-03-14 23:28:51 +13:00