From 695b10820e2197f45925ddabc4349fcc841c10b9 Mon Sep 17 00:00:00 2001 From: 186526 Date: Fri, 29 Apr 2022 23:38:04 +0800 Subject: [PATCH] Update --- .gitignore | 2 ++ vite.config.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a547bf3..7a9d1bc 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ dist-ssr *.njsproj *.sln *.sw? + +.vercel diff --git a/vite.config.js b/vite.config.js index b0e1a95..5213cc2 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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), } }