Skip to content
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

使用 git commit hash 来表示版本号,可能会导致本地部署问题 #65

Closed
AprilNEA opened this issue Mar 27, 2023 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@AprilNEA
Copy link
Contributor

layout.tsx#L8

如果用户通过 Download Zip/releases 得到源码进行部署,那么一般来说不是携带 .git文件夹的,会在运行时出现以下错误。

Erorr: Command failed: git rev-parse --short HEAD
fatal: Need ed a single revision

建议进行异常处理或者使用 npm version

@Yidadaa Yidadaa added the help wanted Extra attention is needed label Mar 27, 2023
AprilNEA added a commit to AprilNEA/ChatGPT-Next-Web that referenced this issue Mar 27, 2023
Yidadaa added a commit that referenced this issue Mar 27, 2023
fix(#65): fix unknown git commit id
@Yidadaa Yidadaa closed this as completed Mar 27, 2023
yxl pushed a commit to yxl/ChatGPT-Next-Web that referenced this issue May 4, 2023
yxl pushed a commit to yxl/ChatGPT-Next-Web that referenced this issue May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants