Skip to content

Commit

Permalink
fix: make var public
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Mar 4, 2024
1 parent ea1b3e9 commit d0487a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion projects/wp-nextjs/headstartwp.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},

Expand Down
3 changes: 1 addition & 2 deletions projects/wp-nextjs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d0487a5

Please sign in to comment.