-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: display git commit version #556
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
885cc0f
to
2dd3260
Compare
packages/interface/package.json
Outdated
"lint": "next lint", | ||
"lint:fix": "next lint --fix", | ||
"start": "next start", | ||
"start": "pnpm run git-hash && next start", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if just exporting before running works the same, so instead of using a separate script, it's just:
EXPORT NEXT_PUBLIC_COMMIT_HASH=`git log --pretty=format:"%h" -n` && next start
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried before and there's some problem (so actually this command won't be successfully run).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the error?
2dd3260
to
7bcf281
Compare
7bcf281
to
ba362c0
Compare
ba362c0
to
12807c5
Compare
Description
start
,dev
, andbuild
, and write to the.env
file.Related Issues
close #551
Discussion
development
mode? or only the organizer?