Skip to content

Additional info on this page would be awesome… #504

@DavidSabine

Description

@DavidSabine

Describe the solution you'd like

On the 3.pre-rendering.md doc, it could be helpful to explain why a person would (or would not) configure nitro and nuxt.

For example:

  1. Do the following configs achieve essentially the same outcome?
  2. Should one be preferred?
  3. Does the universe implode if both are used?
routeRules: {
    '/': { prerender: true }
  }
nitro: {
    prerender: {
      routes: ['/'],
    }
  }

And what if configs contradict each other — which takes precedent? Does a redneck hiccup each time I run nuxt build with the following?

routeRules: {
    '/articles': { prerender: true },
    '/songs': { prerender: false },
  }
nitro: {
    prerender: {
      ignore: ['/articles'],
      routes: ['/songs'],
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions