Skip to content

Commit 572f17b

Browse files
committed
fix: fixing large amount of 404 erros from json locales
1 parent aab7b4a commit 572f17b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

next-i18next.config.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@ module.exports = {
55
locales: ['en', 'zh', 'ru', 'es', 'ko', 'ja', 'pt', 'tr', 'vi', 'de', 'fr', 'hi', 'id'],
66
},
77
/** To avoid issues when deploying to some paas (vercel...) */
8-
localePath:
9-
typeof window === 'undefined'
10-
? require('path').resolve('./public/locales')
11-
: '/locales',
8+
localePath: require('path').resolve('./public/locales'),
129

13-
reloadOnPrerender: process.env.NODE_ENV === 'development',
10+
reloadOnPrerender: true,
1411

1512
/**
1613
* @link https://github.com/i18next/next-i18next#6-advanced-configuration

0 commit comments

Comments
 (0)