0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-18 19:34:24 +00:00
router/e2e/react-start
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
..
basic chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
basic-auth chore: generate route-tree for all sandboxes 2026-03-14 23:28:51 +13:00
basic-cloudflare chore: add source() to Tailwind v4 imports to ensure consistent hashing (#6459) 2026-01-24 01:49:12 +01:00
basic-react-query chore: generate route-tree for all sandboxes 2026-03-14 23:28:51 +13:00
basic-rsc chore: add source() to Tailwind v4 imports to ensure consistent hashing (#6459) 2026-01-24 01:49:12 +01:00
basic-tsr-config chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
clerk-basic chore: add source() to Tailwind v4 imports to ensure consistent hashing (#6459) 2026-01-24 01:49:12 +01:00
csp chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
css-modules chore(examples): update Nitro to v3 beta (#6899) 2026-03-14 22:52:36 +13:00
custom-basepath chore: generate route-tree for all sandboxes 2026-03-14 23:28:51 +13:00
dev-ssr-styles chore(examples): update Nitro to v3 beta (#6899) 2026-03-14 22:52:36 +13:00
flamegraph-bench chore(examples): update Nitro to v3 beta (#6899) 2026-03-14 22:52:36 +13:00
i18n-paraglide chore: add source() to Tailwind v4 imports to ensure consistent hashing (#6459) 2026-01-24 01:49:12 +01:00
import-protection chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
import-protection-custom-config chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
query-integration chore: add source() to Tailwind v4 imports to ensure consistent hashing (#6459) 2026-01-24 01:49:12 +01:00
scroll-restoration chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
selective-ssr chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
serialization-adapters chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
server-functions chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
server-functions-global-middleware chore: generate route-tree for all sandboxes 2026-03-14 23:28:51 +13:00
server-routes chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
server-routes-global-middleware chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
spa-mode fix: don't re-execute stale loaders on unrelated location changes (#6867) 2026-03-09 20:02:35 +01:00
split-base-and-basepath chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
static-server-functions fix: write static server function cache to correct output directory with Nitro (#6940) 2026-03-16 16:56:29 -06:00
streaming-ssr chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
transform-asset-urls chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00
virtual-routes chore: generate route-tree for all sandboxes 2026-03-14 23:28:51 +13:00
website chore: bump h3 and srvx (#6869) 2026-03-09 12:50:41 +01:00