mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 05:32:01 +00:00
add trailing slash config to fix i18n with api routes
This commit is contained in:
+3
-1
@@ -2,5 +2,7 @@ const { i18n } = require('./next-i18next.config')
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
i18n,
|
i18n,
|
||||||
reactStrictMode: true
|
reactStrictMode: true,
|
||||||
|
// Required by Next i18n with API routes, otherwise API routes 404 when fetching without trailing slash
|
||||||
|
trailingSlash: true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user