chore: add meta build info to the website (#48834)

* chore: website add more build info

* chore: update

* Revert "chore: update"

This reverts commit 487dca0c56.

* Revert "chore: website add more build info"

This reverts commit cc5cb6b33d.

* chore: update

* chore: update

* chore: update
This commit is contained in:
2024-05-09 19:39:31 +08:00 committed by GitHub
parent fec2132073
commit e2e3331ffe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,7 +40,12 @@ export default defineConfig({
}, },
extraRehypePlugins: [rehypeAntd], extraRehypePlugins: [rehypeAntd],
extraRemarkPlugins: [remarkAntd], 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: { analytics: {
ga_v2: 'UA-72788897-1', ga_v2: 'UA-72788897-1',
}, },