diff --git a/packages/start-plugin-core/src/post-server-build.ts b/packages/start-plugin-core/src/post-server-build.ts index 01c9f746677..109b5a680c5 100644 --- a/packages/start-plugin-core/src/post-server-build.ts +++ b/packages/start-plugin-core/src/post-server-build.ts @@ -59,7 +59,7 @@ export async function postServerBuild({ } // Run the sitemap build process - if (startConfig.pages.length) { + if (startConfig.sitemap?.enabled) { buildSitemap({ startConfig, publicDir: