Skip to content

Commit

Permalink
Fix define
Browse files Browse the repository at this point in the history
  • Loading branch information
Kadrian committed Oct 2, 2024
1 parent 3fa1b2a commit 247355c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ export default defineConfig({
__BUILD_TIMESTAMP__: JSON.stringify(
new Date().toISOString().split(".")[0].split("T").join(" "),
),
__BUILD_GIT_DESCRIBE__: fs.existsSync("./git_describe.txt")
? fs.readFileSync("./git_describe.txt", "utf-8").trim()
: '"__BUILD_GIT_DESCRIBE__"',
__BUILD_GIT_DESCRIBE__: JSON.stringify(
fs.existsSync("./git_describe.txt")
? fs.readFileSync("./git_describe.txt", "utf-8").trim()
: "__BUILD_GIT_DESCRIBE__",
),
},
});

0 comments on commit 247355c

Please sign in to comment.