-
Notifications
You must be signed in to change notification settings - Fork 632
Dynamic routes #4
Comments
It'd be impossible for the plugin to know which exercises actually exist, but you can accomplish this another way. Just connect to your database or read from the file system to compile a list of all the links to existing exercises. |
Can I make a api request to get ids of exercises rather than database and file system =。= |
Just came upon the same issue. I thought about to read a external file to insert in the list of routes to pre-render. But i don't know how.
Could you be a little mire specific how to do this? @Iyyourc I'm searching for doing a api request inside my webpack.config too. Did you get it to work? |
@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. |
I am having the same issue, is there any reason dynamic route are not supported? I am using this plugin only for social crawler. |
Is it possible to to have dynamic routes/links like:
[ '/', '/contact', '/exercises/:exercise' ],
So that is prerenders all pages in under exercises?
The text was updated successfully, but these errors were encountered: