question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exclude some routes from prerendering

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
daniloff200commented, Feb 19, 2021

@darxx yeah, in general, I also ended with such solution, and created api calls for such case

0reactions
darxxcommented, Jan 14, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found