Skip to content

Commit

Permalink
Back to codes operator ?? -> ||
Browse files Browse the repository at this point in the history
  • Loading branch information
HiroyukiNaito committed Feb 1, 2024
1 parent 09764f5 commit 113e81b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion next-i18next.config.js
Original file line number Diff line number Diff line change
@@ -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(",")
Expand Down
2 changes: 1 addition & 1 deletion next-sitemap.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 113e81b

Please sign in to comment.