Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/solid/start-basic-nitro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"devDependencies": {
"@tailwindcss/vite": "^4.1.18",
"@types/node": "^22.5.4",
"nitro": "^3.0.1-alpha.1",
"nitro": "npm:nitro-nightly@latest",
"tailwindcss": "^4.1.18",
"typescript": "^5.7.2",
"vite": "^7.1.7",
Expand Down
12 changes: 11 additions & 1 deletion examples/solid/start-basic-nitro/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ export default defineConfig({
projects: ['./tsconfig.json'],
}),
nitro({ preset: 'node-server' }),
tanstackStart(),
tanstackStart({
sitemap: { enabled: false },
prerender: {
enabled: true,
filter: ({ path }) =>
!path.startsWith('/users') &&
!path.startsWith('/this-route-does-not-exist') &&
!path.startsWith('/posts/i-do-not-exist') &&
!path.startsWith('/deferred'),
},
}),
viteSolid({ ssr: true }),
],
})
7 changes: 7 additions & 0 deletions packages/start-plugin-core/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,13 @@ export function TanStackStartVitePluginCore(
},
}
},
},
// Separate plugin for buildApp hook without enforce: 'pre'
// This ensures proper ordering with other plugins that also have
// buildApp hooks with order: 'post'. The enforce: 'pre' on the config plugin
// would cause this hook to run before those others' buildApp, breaking prerendering.
{
name: 'tanstack-start-core:post-build',
buildApp: {
order: 'post',
async handler(builder) {
Expand Down
Loading
Loading