diff --git a/src/prerender.ts b/src/prerender.ts index 68b41e04..4ba23e58 100644 --- a/src/prerender.ts +++ b/src/prerender.ts @@ -71,6 +71,9 @@ export function setupPrerenderHandler(moduleConfig: ModuleOptions, buildTimeMeta return } + if (!buildTimeMeta.prerenderSitemap) + return + sitemapGenerated = true // we need a siteUrl set for pre-rendering