Skip to content

Commit

Permalink
Do not send i18n config to next config when app dir
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelakee02 committed Oct 22, 2023
1 parent f5a4c59 commit 34f9d6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ function nextTranslate(nextConfig: NextConfig = {}): NextConfig {
}

return {
...nextConfigWithI18n,
// new next with app folder cannot have i18n config in next.config.js
...(existPagesFolder ? nextConfigWithI18n : {}),
webpack(conf: webpack.Configuration, options) {
const config: webpack.Configuration =
typeof nextConfig.webpack === 'function'
Expand Down

0 comments on commit 34f9d6b

Please sign in to comment.