Skip to content

Commit

Permalink
fix: avoid prerendering sitemap.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 22, 2022
1 parent 2fb48df commit 89a3b92
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ declare module 'nitropack' {
return
}

nitro.options.prerender.routes = nitro.options.prerender.routes || []
nitro.options.prerender.routes.push('/sitemap.xml')

let sitemapRoutes: string[] = []

const outputSitemap = async () => {
Expand Down

0 comments on commit 89a3b92

Please sign in to comment.