From d1ed9257c7e5d94ff04fd193893529e682dc975e Mon Sep 17 00:00:00 2001 From: BeiyanYunyi <14120445+BeiyanYunyi@users.noreply.github.com> Date: Thu, 13 Apr 2023 14:40:52 +0800 Subject: [PATCH] [M] Resolve cache --- scripts/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.ts b/scripts/build.ts index 48e9dd2a..4eb0324d 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -128,7 +128,7 @@ function buildPeoplePages() { const result = renderMdx(markdown); fs.ensureDirSync(distPath); - fs.writeFileSync(path.join(distPath, `page${lang}.js`), result); + fs.writeFileSync(path.join(distPath, `page${lang}.json`), JSON.stringify(result)); } } }