Replies: 1 comment 2 replies
-
You may be able to use either redirects or rewrites and then get rid of your custom Express server. |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hey,
I am currently migrating a platforms frontend to use Next.JS.
The website is made up of products and categories, the url is made from the product name or the category name.
For example:
/tablets
/phones
/ipad-4th-gen
So we do not have to setup a bunch of redirects, in the express server I lookup the route information from an API and change the request url to match the routing used in next:
/product/1
/category/1
This seems to work well, however, I don't know if it's possible to do shallow linking with this method? Say I wanted to link to a different category, is there a way I can do something like this?
If this isn't possible, can somebody point me in the direction of the code where I could possibly change the users route? If not I guess I will bite the bullet and redirect the existing urls.
Beta Was this translation helpful? Give feedback.
All reactions