mirror of
https://github.com/sys-32Dev/onedrive-vercel-index.git
synced 2026-08-08 20:06:34 +00:00
add trailing slash config to fix i18n with api routes
This commit is contained in:
@@ -2,5 +2,7 @@ const { i18n } = require('./next-i18next.config')
|
||||
|
||||
module.exports = {
|
||||
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