From 0c81be522ffdb29ac88659b2171372fb0877b7ba Mon Sep 17 00:00:00 2001 From: Suhaha Date: Mon, 30 Dec 2024 17:12:41 +0800 Subject: [PATCH] fix: remove ja option from home page of archived site --- gatsby/create-pages.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gatsby/create-pages.ts b/gatsby/create-pages.ts index e2531e209..9bc6a65a7 100644 --- a/gatsby/create-pages.ts +++ b/gatsby/create-pages.ts @@ -253,7 +253,10 @@ export const createDocHome = async ({ const path = generateDocHomeUrl(name, pathConfig); const navUrl = generateNav(pathConfig); - const locale = [Locale.en, Locale.zh, Locale.ja]; + const locale = + process.env.WEBSITE_BUILD_TYPE === "archive" + ? [Locale.en, Locale.zh] + : [Locale.en, Locale.zh, Locale.ja]; createPage({ path,