Extending prerender routes
See original GitHub issueIn Nuxt 2, using nuxt generate
, we could either manually provide routes to generate or depend on the (later added) crawler to find them.
For manual mode, it was possible to use generate.routes
option to provide an async function prefetching them. While this functionality is needed in general, adding async logic to nuxt.config
is kinda an anti pattern that we are trying to avoid in Nuxt 3 so there might be better ideas.
Ref: #4885
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:26 (5 by maintainers)
Top Results From Across the Web
Prerendering static pages - Angular
Provide extra routes in the command line; Provide routes using a file; Prerender specific routes. Provide extra routes in the command linelink. While...
Read more >Page options • Docs • SvelteKit
The prerenderer will start at the root of your app and generate files for any prerenderable pages or +server.js routes it finds. Each...
Read more >Angular universal : Unable to prerendering dynamic routes
There are many categories under my primary route, so I need this dynamic prerendering. How to set this type of data under prerender...
Read more >Prerendering methods and data fetching strategies in JSS ...
The GetStaticPaths implementation generates a list of paths that must ... When creating a JSS Next.js app specifying --prerender SSR , the ...
Read more >Angular Universal Example: Server Side Rendering (SSR ...
Angular Universal Example: Server Side Rendering (SSR), Prerender · 1. Getting started with Angular 10 · 2. Routing and HttpClient implementation ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@TotomInc As a workaround, You can also use
nitro:config
hook to add custom (async) routes to prerenderer:I think there’s a misunderstanding. We are not talking about query parameters. The feature we are referring to is this one: https://nuxtjs.org/docs/configuration-glossary/configuration-generate/#speeding-up-dynamic-route-generation-with-payload
nuxt.config.js: