16 lines
341 B
TypeScript
16 lines
341 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: Number(process.env.WEB_PORT ?? 8100),
|
|
proxy: {
|
|
'/api': {
|
|
target: process.env.API_ORIGIN ?? 'http://localhost:8200',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|