nuxt/nuxt

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

Closed

#23,055 opened on Sep 7, 2023

 (5 comments) (0 reactions) (0 assignees)TypeScript (5,607 forks)batch import
good first issue

Repository metrics

Stars
 (60,221 stars)
PR merge metrics
 (Avg merge 3d 7h) (114 merged PRs in 30d)

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