Skip to content

Commit

Permalink
Fix CF Pages on linkify (#1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geometrically authored Jul 4, 2023
1 parent 6e0f223 commit 65791a5
Show file tree
Hide file tree
Showing 4 changed files with 616 additions and 135 deletions.
16 changes: 12 additions & 4 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dev": "nuxi dev",
"generate": "nuxi generate",
"preview": "nuxi preview",
"postinstall": "nuxi prepare && patch-package",
"postinstall": "nuxi prepare",
"lint:js": "eslint . --ext .js,.vue,.ts",
"lint": "npm run lint:js && prettier --check .",
"fix": "eslint . --fix --ext .js,.vue,.ts && prettier --write .",
Expand Down Expand Up @@ -33,8 +33,7 @@
"typescript": "^5.0.4",
"vite-plugin-eslint": "^1.8.1",
"vite-svg-loader": "^4.0.0",
"vue-tsc": "^1.6.5",
"patch-package": "^7.0.0"
"vue-tsc": "^1.6.5"
},
"dependencies": {
"@ltd/j-toml": "^1.38.0",
Expand All @@ -47,5 +46,10 @@
"vue-multiselect": "^3.0.0-alpha.2",
"xss": "^1.0.14"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
Loading

0 comments on commit 65791a5

Please sign in to comment.