add trailing slash config to fix i18n with api routes
This commit is contained in:
parent
85b51fe5c1
commit
aa848c92f8
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue