Closed shaqq closed 5 years ago
Bump
@shaqq I reckon server redirects are your best option. Nice blog post here https://www.raygesualdo.com/posts/301-redirects-with-nextjs/
Yeah, I've just added
.get('/a', (_req, res) => {
return res.redirect('/b')
})
which works for me.
Cool, I guess server redirects are the way to go. My preference would be to have it all in one place, but I guess that's not easily done.
Say I want routes like so:
Is there a way to do that in the
routes.js
? Or do I have to add redirects into myserver.js
?