diff --git a/next-i18next.config.js b/next-i18next.config.js index 8a8a6ceaa2b..bacf8af4049 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -1,6 +1,6 @@ const i18nConfig = require("./i18n.config.json") -const BUILD_LOCALES = process.env.BUILD_LOCALES ?? false +const BUILD_LOCALES = process.env.BUILD_LOCALES // Supported locales defined in `i18n.config.json` const locales = BUILD_LOCALES ? BUILD_LOCALES.split(",") diff --git a/next-sitemap.config.js b/next-sitemap.config.js index 463e60868a6..5e5ee4e0caa 100644 --- a/next-sitemap.config.js +++ b/next-sitemap.config.js @@ -3,7 +3,7 @@ const locales = i18nConfig.map(({ code }) => code) /** @type {import('next-sitemap').IConfig} */ module.exports = { - siteUrl: process.env.SITE_URL ?? "https://ethereum.org", + siteUrl: process.env.SITE_URL || "https://ethereum.org", generateRobotsTxt: true, transform: async (_, path) => { const rootPath = path.split("/")[1]