Skip to content

Commit 79a5eee

Browse files
committed
try something
1 parent 30e5138 commit 79a5eee

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

astro.config.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ if (!gitVersion) {
3131
export default defineConfig({
3232
vite: {
3333
define: {
34-
__TIMESTAMP__: new Date()
35-
.toISOString()
36-
.replace(/[-:T.Z]/g, "")
37-
.slice(0, 14),
38-
__GIT_VERSION__: gitVersion,
34+
__TIMESTAMP__: JSON.stringify(
35+
new Date()
36+
.toISOString()
37+
.replace(/[-:T.Z]/g, "")
38+
.slice(0, 14)
39+
),
40+
__GIT_VERSION__: JSON.stringify(gitVersion),
3941
},
4042
resolve: {
4143
alias: {

0 commit comments

Comments
 (0)