Open liuchuansmile opened 1 month ago
Have you set the site url
correctly in defineNuxtConfig
?
https://nuxtseo.com/sitemap/getting-started/installation
When you say production, do you just mean via yarn build
command or is localhost
always set no matter the environment?
If possible, it would be great if you could create a repo with your configuration either within Github or https://stackblitz.com/?
@rayblair06 Thanks for the reply. My local setup looks like this:
export default defineNuxtConfig({
site: {
url: `https://${PROD_DOMAIN}`,
name: title,
},
})
In fact, forgive me if I don't understand the configuration in the official documentation.
When I tried the simplest version on stackblitz, it seemed to work. This is weird. It looks like I have a local configuration conflict or a version issue?
My stackblitz projecit is : here
As the Stackblitz reproduction is working there's not too much I can help with. Are you deploying with any specific nitro preset?
@harlan-zw it's just that
nitro: {
esbuild: {
options: {
target: 'esnext',
},
},
},
đ What are you trying to do?
@nuxtjs/sitemap
uses default configuration, not configured separately in nuxt.config.jsyarn dev
, with /preview access to the subdirectory sitemapyarn build
, you no longer have access to subpathsđ What have you tried?
No response
âšī¸ Additional context
No response