Skip to content

Commit

Permalink
use vercel environment variable as a fallback for git sha if available (
Browse files Browse the repository at this point in the history
  • Loading branch information
bucko13 authored Feb 27, 2024
1 parent 00a550f commit 5d871d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/coordinator/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export default defineConfig({
},
},
define: {
__GIT_SHA__: JSON.stringify(process.env.__GIT_SHA__),
__GIT_SHA__: JSON.stringify(
process.env.__GIT_SHA__ ||
(process.env.__VERCEL_GIT_COMMIT_SHA__ || "").slice(0, 7),
),
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
},
optimizeDeps: {
Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@
"engines": {
"node": ">=20"
},
"overrides": {
"jspdf": "2.5.1",
"@ledgerhq/hw-transport-webusb": {
"@ledgerhq/hw-transport": "6.28.1",
"@ledgerhq/devices": "8.0.0"
}
},
"packageManager": "[email protected]",
"workspaces": [
"apps/*",
Expand Down

1 comment on commit 5d871d7

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented on 5d871d7 Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for caravan-coordinator ready!

✅ Preview
https://caravan-coordinator-6sjdk7csp-unchained.vercel.app

Built with commit 5d871d7.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.