Skip to content
Merged
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
7 changes: 4 additions & 3 deletions packages/start-plugin-core/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,13 @@ export function TanStackStartVitePluginCore(
}
},
},
// Separate plugin for buildApp hook without enforce: 'pre'
// Separate plugin for buildApp hook with enforce: 'post'
// 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.
// buildApp hooks with order: 'post'. The enforce: 'post' ensures this
// runs after other plugins (like Nitro) complete their builds.
{
name: 'tanstack-start-core:post-build',
enforce: 'post',
buildApp: {
order: 'post',
async handler(builder) {
Expand Down
Loading