V1_commit_RGC
This commit is contained in:
45
SuiviREForamteur/suivireforamteur/vite.config.js
Normal file
45
SuiviREForamteur/suivireforamteur/vite.config.js
Normal file
@@ -0,0 +1,45 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 81,
|
||||
strictPort: true,
|
||||
allowedHosts: [
|
||||
'myrgc.ensup-adm.net',
|
||||
'localhost',
|
||||
'.ensup-adm.net'
|
||||
],
|
||||
watch: {
|
||||
usePolling: true
|
||||
},
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://backend:3005',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
configure: (proxy) => {
|
||||
proxy.on('proxyReq', (proxyReq, req) => {
|
||||
console.log('🔀 Proxy /api:', req.method, req.url);
|
||||
});
|
||||
}
|
||||
},
|
||||
'/auth': {
|
||||
target: 'http://backend:3005',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
configure: (proxy) => {
|
||||
proxy.on('proxyReq', (proxyReq, req) => {
|
||||
console.log('🔀 Proxy /auth:', req.method, req.url);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
sourcemap: true
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user