GTARH_Modif_anno27

This commit is contained in:
2025-12-02 17:57:33 +01:00
committed by Imer ouijdane
parent 721c02759f
commit 762f9cfd4a
96 changed files with 32985 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [
react()
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
host: true,
port: 3014,
allowedHosts: [
'mygta-rh.ensup-adm.net',
'localhost'
],
hmr: {
protocol: 'ws',
host: 'mygta-rh.ensup-adm.net',
clientPort: 80,
},
proxy: {
'/api': {
target: 'http://172.20.0.2:1433', // ← backend Node, pas SQL Server
changeOrigin: true,
secure: false,
ws: true,
rewrite: (path) => path.replace(/^\/api/, ''),
}
}
},
build: {
outDir: 'dist',
sourcemap: false,
}
})