This commit is contained in:
186526 2022-04-29 23:38:04 +08:00
parent d49d224ba4
commit 695b10820e
Signed by: 186526
GPG Key ID: C7EB1E6B8CC5E51D
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?
.vercel

View File

@ -4,7 +4,7 @@ import child_process from "child_process"
*/
const config = {
define: {
'__APP_VERSION': child_process.execSync('git rev-parse --short HEAD').toString().replaceAll("\n",""),
'__APP_VERSION': child_process.execSync('git rev-parse --short HEAD').toString().replace("\n",""),
'__APP_BUILD_TIME': Math.floor(Date.now() / 1000),
}
}