From e2e3331ffe1cf8cffac65f5c56ee24be4439ecdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BA=A2?= Date: Thu, 9 May 2024 19:39:31 +0800 Subject: [PATCH] chore: add meta build info to the website (#48834) * chore: website add more build info * chore: update * Revert "chore: update" This reverts commit 487dca0c560db20b0306dcabd3d49b4c1978ca97. * Revert "chore: website add more build info" This reverts commit cc5cb6b33d5b3481b302be1971084243dc2cbc2c. * chore: update * chore: update * chore: update --- .dumirc.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.dumirc.ts b/.dumirc.ts index db7f7812ef..e96945a97c 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -40,7 +40,12 @@ export default defineConfig({ }, extraRehypePlugins: [rehypeAntd], extraRemarkPlugins: [remarkAntd], - metas: [{ name: 'theme-color', content: '#1677ff' }], + metas: [ + { name: 'theme-color', content: '#1677ff' }, + { name: 'build-time', content: Date.now().toString() }, + // https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables + { name: 'build-hash', content: process.env.GITHUB_SHA ?? 'unknown' }, + ], analytics: { ga_v2: 'UA-72788897-1', },