Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add meta build info to the website #48834

Merged
merged 7 commits into from
May 9, 2024
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
process.env.GITHUB_SHA && { name: 'build-hash', content: process.env.GITHUB_SHA },
].filter(Boolean) as ReturnType<typeof defineConfig>['metas'],
zombieJ marked this conversation as resolved.
Show resolved Hide resolved
analytics: {
ga_v2: 'UA-72788897-1',
},
Expand Down