Files
GTF_VersionFinal/GTF_v1/GTF/project/vite.config.ts
T
2026-06-26 14:50:55 +02:00

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
}
}
}
})