Replies: 1 comment
-
ok I think I know how to do the static optimization for nested routes, after re reading the docs it says I must return both params in the getStaticPaths functions
I'm still trying to understand how to set a default category as the root of my app, any pointers? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to make the index of my app to be a default category at page 1, if nothing matches my categories it should also go to the default category and load the first page, I don't have a bunch of pages so I'm also trying to generate all the pages for my categories with getStaticPaths.
I've read the docs trying to figure this out but they use a very simple example where you have a bunch of posts and you generate each post using static paths, when you have nested dynamic routes I'm not sure how to achieve it, any help would be appreciated :/
Beta Was this translation helpful? Give feedback.
All reactions