Skip to content

Commit

Permalink
迁移到 Netlify 后必要的环境变量修改
Browse files Browse the repository at this point in the history
  • Loading branch information
Big-Cake-jpg committed May 2, 2024
1 parent e42a3a2 commit 091e3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
GitChangelogMarkdownSection,
} from '@nolebase/vitepress-plugin-git-changelog/vite'

const COMMIT_ID = process.env.GITHUB_SHA || process.env.CF_PAGES_COMMIT_SHA || "local"
const COMMIT_ID = process.env.COMMIT_REF || process.env.GITHUB_SHA || process.env.CF_PAGES_COMMIT_SHA || "local"
const commitRef = COMMIT_ID?.slice(0, 8)
const environment = process.env.DEPLOYMENT_STATUS || process.env.NODE_ENV
const pwaName = process.env.PWA_NAME || "CrashMC 文档(本地)"
Expand Down

0 comments on commit 091e3f3

Please sign in to comment.