Deployed a nuxt site to the XDN and trying to serve my sitemap, receiving the following error:
None of the specified routes in "default" destination have matched the request (edge receive).
I assumed this would be treated like any other static file, and it works locally. We also tried forcing it in the router:
.match('/sitemap.xml', ({ serveStatic }) => {
serveStatic('dist/sitemap.xml');
})
Additionally, on the nuxt example in the docs I see the same behavior:
https://moovweb-docs-xdn-nuxt-example-default.moovweb-edge.io/sitemap.xml
I modified the example to use @nuxtjs/sitemap
with the following config in nuxt.config.js
modules: [
'@nuxtjs/sitemap'
],
sitemap: {
hostname: 'https://example.com',
gzip: true,
exclude: [
'/secret',
'/admin/**'
],
routes: [
'/page/1',
'/page/2',
{
url: '/page/3',
changefreq: 'daily',
priority: 1,
lastmod: '2017-06-30T13:30:00.000Z'
}
]
},
From the nuxt sitemap example docs, and see the same behavior on the XDN:
https://patrick-saweikis-xdn-nuxt-example-default.moovweb-edge.io/sitemap.xml