feat(admin): VERSION+sha в UI, bake CI и auto stage по sha-*
This commit is contained in:
@@ -6,8 +6,17 @@ import tailwindcss from '@tailwindcss/vite';
|
||||
const apiBaseUrl = process.env.VITE_API_BASE_URL ?? 'https://admin-api.dev.eventhub.local';
|
||||
const wsUrl = process.env.VITE_WS_URL ?? 'wss://admin-ws.dev.eventhub.local';
|
||||
|
||||
const appVersion = process.env.VITE_APP_VERSION ?? '0.0';
|
||||
const gitSha = process.env.VITE_GIT_SHA ?? 'dev';
|
||||
const builtAt = process.env.VITE_BUILT_AT ?? '';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react(), tailwindcss()],
|
||||
define: {
|
||||
'import.meta.env.VITE_APP_VERSION': JSON.stringify(appVersion),
|
||||
'import.meta.env.VITE_GIT_SHA': JSON.stringify(gitSha),
|
||||
'import.meta.env.VITE_BUILT_AT': JSON.stringify(builtAt),
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
|
||||
Reference in New Issue
Block a user