From 53522f5d600c79dee1dca1901bbfb4b9e06c149a Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 11 Mar 2024 14:56:00 +0800 Subject: [PATCH] Fix setup.js --- scripts/setup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/setup.js b/scripts/setup.js index 7345d4c2..9c2444e0 100644 --- a/scripts/setup.js +++ b/scripts/setup.js @@ -66,8 +66,8 @@ function setupAssets() { } }); } -import { find } from "../feishu-pages/docs.json"; -const hkMetadata = find((doc) => doc.meta?.slug === "zh-HK"); +import docs from "../feishu-pages/docs.json"; +const hkMetadata = docs.find((doc) => doc.meta?.slug === "zh-HK"); const HomePageSlug = "guides"; // read feishu-pages/docs.json file find slug equal guides, then copy it to locales/zh-HK/docs/index.md // for Nginx directory to index.html