Skip to content

Commit

Permalink
fix: avoid prerendering sitemap for nuxt build
Browse files Browse the repository at this point in the history
Fixes #103 (maybe)
  • Loading branch information
harlan-zw committed Jul 30, 2023
1 parent 7e5f07a commit bf25d77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf25d77

Please sign in to comment.