Exclude some routes from prerendering
See original GitHub issueI’m looking for ability to exclude some routes from prerendering.
That was mentioned in https://github.com/scullyio/scully/issues/154 and looks to be fixed by voidPlugin
, but, I can’t find anything about that in the docs, or, some examples.
So, my question is: Does this plugin works for now?
I also have some routes in the app (mostly some dynamic routes, which number can increase every day, let’s say, it’s some personnel page for a user with some info, and it has a path, like, /info/:userId
(and userId
is a random string, so, can’t use it like /1, /2
, etc), and, I think, the best solution for me here is to exclude it from prerender, but, I can’t do it for now.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
No documentation on how to exclude certain routes ... - GitHub
My first idea was to build these static pages and prerender only these routes. The problem is I couldn't find out how to...
Read more >Ignore Rules - Troubleshooting - Prerender.io
You can ignore URLs based on rules. You can configure your middleware not to send requests to Prerender.io. Ignore specific URL parameters. A ......
Read more >How to exclude index.vue from prerendering so that index ...
I use nuxt generate in my project to prerender some routes and excluding dynamic routes from prerendering in nuxt.config.js like so:
Read more >Page options • Docs • SvelteKit
It's likely that at least some routes of your app can be represented as a simple HTML file generated at build time. These...
Read more >Prerender Angular Apps with less Configuration
However there are some routes which the guess-parser can detect but they can't be prerendered without providing additional information. Those ...
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
@darxx yeah, in general, I also ended with such solution, and created api calls for such case
In my case we had API endpoint that’s return all id that need to be static pages. And by json plugin we able to get all routes that’s as it was shown in YouTube link. In our case we need to generate all /product/:id. Hope @SanderElias can help You more.