diff --git a/src/index.ts b/src/index.ts index cf8595b..4b12caf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 : nextConfig), webpack(conf: webpack.Configuration, options) { const config: webpack.Configuration = typeof nextConfig.webpack === 'function'