Spaces:
Running
Running
File size: 604 Bytes
05f86a6 7be508e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import path from 'path';
import { defineConfig } from 'vite';
export default defineConfig({
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
}
},
define: {
'import.meta.env.VITE_PRESET_API_URL': JSON.stringify(process.env.VITE_PRESET_API_URL || ''),
'import.meta.env.VITE_PRESET_API_KEY': JSON.stringify(process.env.VITE_PRESET_API_KEY || ''),
},
build: {
target: 'es2020',
rollupOptions: {
output: {
manualChunks: undefined,
}
}
},
server: {
port: 5173,
host: '0.0.0.0',
open: false
}
}); |