nuxt/nuxt

explanation of `200.html` and `404.html`

Open

#23055 opened on Sep 7, 2023

View on GitHub
 (5 comments) (0 reactions) (0 assignees)TypeScript (60,221 stars) (5,607 forks)batch import
good first issue

Description

Environment

  • Operating System: Darwin
  • Node Version: v16.20.1
  • Nuxt Version: 3.6.5
  • Nitro Version: 2.5.2
  • Package Manager: pnpm@8.7.4
  • Builder: vite
  • User Config: nitro, app, ui, devtools, typescript, vue, modules, content, colorMode, vite
  • Runtime Modules: @nuxt/content@2.7.2, @nuxthq/ui@2.7.0-28233674.a2970cb
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-h3ry36?file=nuxt.config.ts

Describe the bug

Got this config:

export default defineNuxtConfig({
  nitro: {
    routeRules: {
      '/**': { prerender: true },
      '/spa': { ssr: false },
    },
    prerender: {
      crawlLinks: true,
      routes: ['/', ],
    },
  },
})

If this isn't a bug, how to generate the fallback htmls like nuxt generate?

Additional context

No response

Logs

No response

Contributor guide