14 lines
418 B
TypeScript
14 lines
418 B
TypeScript
|
|
import { defineConfig } from 'vite';
|
||
|
|
import react from '@vitejs/plugin-react';
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [react()],
|
||
|
|
server: {
|
||
|
|
proxy: { '/api': 'http://localhost:8080' },
|
||
|
|
},
|
||
|
|
define: {
|
||
|
|
'import.meta.env.VITE_APP_VERSION': JSON.stringify(process.env.VITE_APP_VERSION ?? '1.0.0-dev'),
|
||
|
|
'import.meta.env.VITE_BUILD_CHANNEL': JSON.stringify(process.env.VITE_BUILD_CHANNEL ?? 'dev'),
|
||
|
|
},
|
||
|
|
});
|