diff --git a/projects/wp-nextjs/headstartwp.config.js b/projects/wp-nextjs/headstartwp.config.js index ab0c99146..7f8037b61 100644 --- a/projects/wp-nextjs/headstartwp.config.js +++ b/projects/wp-nextjs/headstartwp.config.js @@ -43,7 +43,7 @@ module.exports = { enable: true, }, polylang: { - enable: process.env?.ENABLE_POLYLANG_INTEGRATION === 'true', + enable: process.env?.NEXT_PUBLIC_ENABLE_POLYLANG_INTEGRATION === 'true', }, }, diff --git a/projects/wp-nextjs/next.config.js b/projects/wp-nextjs/next.config.js index a1a9f944c..6dd4239ec 100644 --- a/projects/wp-nextjs/next.config.js +++ b/projects/wp-nextjs/next.config.js @@ -14,10 +14,9 @@ const nextConfig = { ignoreDuringBuilds: true, }, }; - // if you are not using polylang integration you can remove this code // if you are replace the locales with the ones you are using -if (process.env?.ENABLE_POLYLANG_INTEGRATION === 'true') { +if (process.env?.NEXT_PUBLIC_ENABLE_POLYLANG_INTEGRATION === 'true') { nextConfig.i18n = { locales: ['en', 'pt'], defaultLocale: 'en',