Skip to content

Commit ccad538

Browse files
authored
fix: remove ja option from home page of archived site (#572)
1 parent 38f6a65 commit ccad538

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gatsby/create-pages.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,10 @@ export const createDocHome = async ({
253253
const path = generateDocHomeUrl(name, pathConfig);
254254
const navUrl = generateNav(pathConfig);
255255

256-
const locale = [Locale.en, Locale.zh, Locale.ja];
256+
const locale =
257+
process.env.WEBSITE_BUILD_TYPE === "archive"
258+
? [Locale.en, Locale.zh]
259+
: [Locale.en, Locale.zh, Locale.ja];
257260

258261
createPage({
259262
path,

0 commit comments

Comments
 (0)