sitemap.xml not served in production build

Shuky
0
Shuky
commented 2 months ago

when I run nuxt dev server I have a sitemap.xml generated on the fly.
when I build my production build and start the server sitemap.xml is not found.
Is there a way to generate sitemap.xml in during runtime in production or should I just use nuxt generate and serve it statically?

Nuxt.js v2.11.0
@nuxtjs/sitemap 2.0.1

relevant configuration:
'@nuxtjs/sitemap', { path: '/sitemap.xml', }

0
NicoPennec
1.9k
NicoPennec
commented 2 months ago

Hi @Shuky
in production do you use the "universal" mode? or the "generate" mode?

0
Informations
Question โ€ข Unresolved
#c85 - Created 2 months ago