Replies: 1 comment
-
Hi, did you solve the issue? |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm using domain routing and localised pathnames and I want to set a basePath in the next config file.
So in my
middleware.ts
I'm setting the domains like the following:Then in my
navigation.ts
file I'm setting the pathnames:Then in my
next.config.js
file I'm setting the basePath:The issue I have is when I go to the Welsh domain the basePath does not translate
NEXT_PUBLIC_WELSH_DOMAIN/chwilio
(it 404's) but renders on the English path ofNEXT_PUBLIC_WELSH_DOMAIN/search
. Any help would be greatly appreciated!Note - I should also mention that
localePrefix
is set tonever
.Beta Was this translation helpful? Give feedback.
All reactions