Fix CF Pages on linkify (#1231)

This commit is contained in:
Geometrically
2023-07-04 12:15:14 -07:00
committed by GitHub
parent 6e0f22323b
commit 65791a58e9
4 changed files with 616 additions and 135 deletions

View File

@@ -269,10 +269,18 @@ export default defineNuxtConfig({
owner: process.env.VERCEL_GIT_REPO_OWNER || 'modrinth',
slug: process.env.VERCEL_GIT_REPO_SLUG || 'knossos',
// @ts-ignore
branch: process.env.VERCEL_GIT_COMMIT_REF || globalThis.CF_PAGES_BRANCH || 'master',
// @ts-ignore
hash: process.env.VERCEL_GIT_COMMIT_SHA || globalThis.CF_PAGES_COMMIT_SHA || 'unknown',
branch:
process.env.VERCEL_GIT_COMMIT_REF ||
process.env.CF_PAGES_BRANCH ||
// @ts-ignore
globalThis.CF_PAGES_BRANCH ||
'master',
hash:
process.env.VERCEL_GIT_COMMIT_SHA ||
process.env.CF_PAGES_COMMIT_SHA ||
// @ts-ignore
globalThis.CF_PAGES_COMMIT_SHA ||
'unknown',
},
},
typescript: {