How to use path alias or exportPathMap with next build #14868
Unanswered
maximgeerinck
asked this question in
Help
Replies: 0 comments
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.
-
I would like some routes to have aliases for SEO.
For this i'm looking to something that does exactly what
exportPathMap
does but then when usingnext build
instead.I tried adapting the router of the context in the
getInitialProps
on_app
but it doesn't seem to take any effect.so for example,
/hello
should render the page that's also on url/hey
where hey is a file underpages/hey.js
Beta Was this translation helpful? Give feedback.
All reactions