mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-23 03:25:15 +00:00
Don't fail on non-git executions
warn about this not being supported.
This commit is contained in:
parent
7650b4842a
commit
0ebe6ec08b
|
@ -8,7 +8,12 @@ import Icons from 'unplugin-icons/vite';
|
||||||
import Components from 'unplugin-vue-components/vite';
|
import Components from 'unplugin-vue-components/vite';
|
||||||
import { defineConfig } from 'vite';
|
import { defineConfig } from 'vite';
|
||||||
|
|
||||||
const commitHash = execSync('git rev-parse --short HEAD').toString();
|
let commitHash: string = 'unknown';
|
||||||
|
try {
|
||||||
|
commitHash = execSync('git rev-parse --short HEAD').toString();
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Failed to get commit hash. Running in this mode will not be supported.');
|
||||||
|
}
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user