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.

Is it possible to to have dynamic routes/links like: [ '/', '/contact', '/exercises/:exercise' ],

So that is prerenders all pages in under exercises?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
ghostcommented, Aug 30, 2017

@hurradieweltgehtunter this answer by @trusktr on Mar 23 guided me in the right direction here. I was able to grab my slugs of my blog posts and then prerender those rotues.

A word of caution though, when a new route is added (ie new blog post) this must be run again! If this is something you must do often it might be time to look into some SSR.

1reaction
adnanmuttalebcommented, May 12, 2020

I am having the same issue, is there any reason dynamic route are not supported? I am using this plugin only for social crawler. I want to understand this: are the pages listed in routes are generated previous to the user request? or the js get executed upon user request? if the case is the latter one, then why dynamic routes are not supported?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dynamic Routes - Next.js
Dynamic Routes are pages that allow you to add custom params to your URLs. Start creating Dynamic Routes and learn more here.
Read more >
Routing in Next.js – How to Set Up Dynamic Routing with Pre ...
In this tutorial, you'll learn how to set up dynamic routing in Next.js. You'll also learn about pre-rendering and why it's important.
Read more >
Static vs. dynamic routing: What is the difference? - TechTarget
Dynamic routing, sometimes called adaptive routing, is more complex than static routing because it creates more possible routes to send packets across a ......
Read more >
Dynamic routing - Wikipedia
Dynamic routing, also called adaptive routing, is a process where a router can forward data via a different route for a given destination...
Read more >
How to Create Dynamic Routes in Next.js - MakeUseOf
Dynamic routes are pages that allow you to use custom parameters in a URL. They are especially beneficial when creating pages for dynamic ......
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 Hashnode Post

No results found