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

21 lines
495 B
TypeScript

import { defineConfig } from 'vite'
export default defineConfig({
server: {
host: '0.0.0.0',
port: 3001,
allowedHosts: [
'localhost',
'127.0.0.1',
'mygtf.ensup-adm.net', // ✅ ton domaine ajouté ici
],
proxy: {
'/api': {
target: 'http://backend:3000', // ✅ si tu es en Docker
changeOrigin: true,
secure: false,
},
},
},
})