snowballtools-base/packages/frontend/vite.config.ts
Vivian Phung 8a2b51952f
fix: temp frontend (#230)
* v.0.0.9 staging

* fix: temp frontend deployment bug
2024-06-25 01:04:03 -04:00

25 lines
623 B
TypeScript

import { defineConfig, PluginOption } from 'vite';
import react from '@vitejs/plugin-react';
import { exec } from 'child_process';
import { promisify } from 'util';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()] as PluginOption[],
resolve: {
alias: {
utils: '/src/utils',
assets: '/src/assets',
context: '/src/context',
components: '/src/components',
pages: '/src/pages',
},
},
define: {
'process.env': {},
// __VERSION__: JSON.stringify(
// (await promisify(exec)('git rev-parse --short HEAD')).stdout.trim(),
// ),
},
});