From ac9a44595364d7875795a1f8141ba0e705ae650c Mon Sep 17 00:00:00 2001 From: dostuffthatmatters Date: Wed, 8 Dec 2021 20:20:13 +0100 Subject: [PATCH] Fix tiny config stuff --- package.json | 2 +- src/components/layout/footer.tsx | 2 +- vite.config.js | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 089ac70..fd149b7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "license": "UNLICENSED", "scripts": { "develop": "vite --host", - "build": "VITE_COMMIT_SHA=\"$(git rev-parse --short --verify HEAD)\" && tsc && vite build", + "build": "export VITE_COMMIT_SHA=\"$(git rev-parse --short --verify HEAD)\" && tsc && vite build", "serve": "vite preview", "analyze": "source-map-explorer 'dist/assets/*.js'", "cypress:integration": "cypress open", diff --git a/src/components/layout/footer.tsx b/src/components/layout/footer.tsx index dd0d5a7..6307e1d 100644 --- a/src/components/layout/footer.tsx +++ b/src/components/layout/footer.tsx @@ -59,7 +59,7 @@ export default function Footer() { } >

- © 2021 FastSurvey + © {new Date().getFullYear()} FastSurvey

{navigation.social.map((item) => ( diff --git a/vite.config.js b/vite.config.js index ea354ab..4c17b4a 100644 --- a/vite.config.js +++ b/vite.config.js @@ -10,4 +10,7 @@ export default defineConfig({ '/src': path.resolve(__dirname, 'src'), }, }, + build: { + sourcemap: true, + }, });