BasePath and Locale broken

Adding basePath and redirect to it seems to break the app. Every time I enter my root page / it redirects me to /en/basepath (404) instead of /basePath. Whats wrong with this config?
{
reactStrictMode: true,
swcMinify: true,
/** Next.js i18n docs:
* @see https://nextjs.org/docs/advanced-features/i18n-routing
* Reference repo for i18n:
* @see https://github.com/juliusmarminge/t3-i18n
**/
i18n: {
defaultLocale: "en",
locales: ["en"],
},
basePath: env.APP_BASE_PATH,
async redirects() {
return [
{
source: "/",
destination: env.APP_BASE_PATH,
basePath: false,
permanent: false,
},
];
},
}
{
reactStrictMode: true,
swcMinify: true,
/** Next.js i18n docs:
* @see https://nextjs.org/docs/advanced-features/i18n-routing
* Reference repo for i18n:
* @see https://github.com/juliusmarminge/t3-i18n
**/
i18n: {
defaultLocale: "en",
locales: ["en"],
},
basePath: env.APP_BASE_PATH,
async redirects() {
return [
{
source: "/",
destination: env.APP_BASE_PATH,
basePath: false,
permanent: false,
},
];
},
}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server