mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
docs: fix filename for prerendering page (#30333)
This commit is contained in:
parent
201323d22c
commit
2ed819ab61
@ -159,7 +159,7 @@ prerenderRoutes(["/some/other/url"]);
|
|||||||
|
|
||||||
This is called before prerendering for additional routes to be registered.
|
This is called before prerendering for additional routes to be registered.
|
||||||
|
|
||||||
```ts [nitro.config.ts]
|
```ts [nuxt.config.ts]
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
hooks: {
|
hooks: {
|
||||||
async "prerender:routes"(ctx) {
|
async "prerender:routes"(ctx) {
|
||||||
@ -178,7 +178,7 @@ export default defineNuxtConfig({
|
|||||||
|
|
||||||
This is called for each route during prerendering. You can use this for fine grained handling of each route that gets prerendered.
|
This is called for each route during prerendering. You can use this for fine grained handling of each route that gets prerendered.
|
||||||
|
|
||||||
```ts [nitro.config.ts]
|
```ts [nuxt.config.ts]
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
nitro: {
|
nitro: {
|
||||||
hooks: {
|
hooks: {
|
||||||
|
Loading…
Reference in New Issue
Block a user