nuxt / nuxt/nuxt

Introduce `nuxi prerender` and top level `prerender` in `nuxt.config`

Open
#15,440 1 comment 1 reaction 1 assignee View on GitHub

@pi0 is already working on this.

Since Nov 11, 2022.

5.x
Dominant language
TypeScript
Stars
60.9k
Forks
5.8k
Avg merge
7h 8m
Merged PRs (30d)
162

Description

Currently, configuring nuxi genrate and prerender behavior is implicit by using nitro.prerender options. Also, while nuxi generate is well-known for the entire Nuxt ecosystem, since Nuxt 3 took a hybrid-frist approach, we have renamed the term "generate" to "prerender" to reflect this. Also generate in nuxt.config is a legacy namespace for Nuxt 2.

  • Introduce a new prerender option in nuxt.config that accepts Nuxt-Specific options and normalizes rest for Nitro
  • Introduce new nuxi prerender as alias to nuxi generate to make it more accessible and symmetric

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.