2022-04-29 14:52:00 +00:00
|
|
|
import child_process from "child_process"
|
|
|
|
/**
|
|
|
|
* @type {import('vite').UserConfig}
|
|
|
|
*/
|
|
|
|
const config = {
|
|
|
|
define: {
|
2022-04-29 15:38:04 +00:00
|
|
|
'__APP_VERSION': child_process.execSync('git rev-parse --short HEAD').toString().replace("\n",""),
|
2022-04-29 15:32:11 +00:00
|
|
|
'__APP_BUILD_TIME': Math.floor(Date.now() / 1000),
|
2022-04-29 14:52:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
export default config
|