Is there an equivalent to getStaticpath to next. #598
Answered
by
JoviDeCroock
thapecroth
asked this question in
Q&A
|
Hi, I am new here and have use nextjs before. I checked out the preact-router. I understand how I can do dynamic path. But still curious, about how it will know which page slug to prerender. Is there a way to do similar thing to next's getstaticpath? |
Answered by
JoviDeCroock
May 6, 2021
Replies: 1 comment 2 replies
|
Paths should be automatically picked up by rendering links for them, let's take the example of our own documentation page, by rendering the links in the sidebar |
2 replies
Answer selected by
thapecroth
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Paths should be automatically picked up by rendering links for them, let's take the example of our own documentation page, by rendering the links in the sidebar
wmrwill detect pages (if they're within the same domain) and prerender them, this means that given--prerenderflag we'll SSG every page we can find for you.