Environment
- Operating System: Darwin
- Node Version: v20.9.0
- Nuxt Version: 3.12.3
- CLI Version: 3.12.0
- Nitro Version: 2.9.7
- Package Manager: pnpm@9.4.0
- Builder: -
- User Config: modules, content, app, css, colorMode, vite, runtimeConfig, nitro, svgoLoader, experimental
- Runtime Modules: @nuxt/image@1.7.0, @nuxt/content@2.13.1, @unocss/nuxt@0.59.4, @nuxtjs/color-mode@3.4.2, @vueuse/nuxt@10.11.0, @nuxtjs/sitemap@5.3.2, nuxt-svgo-loader@0.4.0
- Build Modules: -
Reproduction
N/A
Describe the bug
In @nuxt/content 2.13.0, when I run nuxt generate, it successfully builds all my static pages. However, after upgrading to 2.13.1, it only creates 404.html and 200.html along with other pages related to @nuxtjs/sitemap.
I found this is related to issue #2681. It seems the fix was intended to resolve an issue with nuxt/i18n, but it has disrupted the existing functionality. Is there a better approach? Would it be better to address this issue directly within nuxt/i18n?
Currently, we need to add the following to nuxt.config.ts to continue working as expected:
export default defineNuxtConfig({
// ...
nitro: {
prerender: {
routes: ['/'],
},
},
});
Additional context
No response
Logs
No response
Environment
Reproduction
N/A
Describe the bug
In @nuxt/content 2.13.0, when I run
nuxt generate, it successfully builds all my static pages. However, after upgrading to 2.13.1, it only creates404.htmland200.htmlalong with other pages related to@nuxtjs/sitemap.I found this is related to issue #2681. It seems the fix was intended to resolve an issue with
nuxt/i18n, but it has disrupted the existing functionality. Is there a better approach? Would it be better to address this issue directly withinnuxt/i18n?Currently, we need to add the following to
nuxt.config.tsto continue working as expected:Additional context
No response
Logs
No response