We ended up having to do a quick cut over from our react-router + redux massive SPA to next.js. We used this lib to help convert the react-router style routes to next.js.
However we ended up "forking" (shoving into our repo) this lib to allow for:
You can see our implementation here
Our next-routes implementation is here in the repo
Please feel free to reach out on this issue with questions, I hope to have more time to write a blog post on this / make some pull requests here, but I dont know if I will have the time for that as of yet
Thanks for such a great OS project!
Thanks for sharing!
We support <Link prefetch> and there is Router.prefetchRoute() but in development mode Next.js now uses on demand entries for performance improvements.
The latest version supports <Link to='/any/path'> like in react-router
A redirect feature would be great, I think many people would like this. Any PR welcome!
Most helpful comment
Thanks for sharing!
We support
<Link prefetch>and there isRouter.prefetchRoute()but in development mode Next.js now uses on demand entries for performance improvements.The latest version supports
<Link to='/any/path'>like in react-routerA redirect feature would be great, I think many people would like this. Any PR welcome!