19 lines
447 B
TypeScript
19 lines
447 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: true,
|
|
port: 3001,
|
|
strictPort: true,
|
|
allowedHosts: ['mygtf.ensup-adm.net'],
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://backend:3000',
|
|
changeOrigin: true,
|
|
secure: false
|
|
}
|
|
}
|
|
}
|
|
}) |