Is there an equivalent to getStaticpath to next. #598
-
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? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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
wmr
will detect pages (if they're within the same domain) and prerender them, this means that given--prerender
flag we'll SSG every page we can find for you.