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,