Skip to content

Commit

Permalink
fix: inject /sitemap.xml path
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Dec 19, 2022
1 parent 944712f commit 659a0d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ 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 659a0d8

Please sign in to comment.