23 lines
471 B
TypeScript
23 lines
471 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
resolve: {
|
|
dedupe: ['react', 'react-dom'],
|
|
},
|
|
optimizeDeps: {
|
|
include: ['react-multistep'],
|
|
},
|
|
server: {
|
|
proxy: {
|
|
// Proxy API calls to the app service
|
|
'/api': {
|
|
target: process.env.SERVER_HTTPS || process.env.SERVER_HTTP,
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
}
|
|
})
|