2025-09-23 20:54:50 +02:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import vue from '@vitejs/plugin-vue'
|
2025-12-04 22:43:01 +01:00
|
|
|
import { fileURLToPath, URL } from 'node:url'
|
2025-09-23 20:54:50 +02:00
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
plugins: [vue()],
|
|
|
|
|
base: '/app/', // Base path pour le déploiement
|
2025-12-04 22:43:01 +01:00
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-10-19 02:05:02 +02:00
|
|
|
server: {
|
|
|
|
|
proxy: {
|
2026-02-21 00:15:38 +01:00
|
|
|
'/api/webrenderer/ws': {
|
|
|
|
|
target: 'ws://localhost:8080',
|
|
|
|
|
ws: true,
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
2025-10-19 02:05:02 +02:00
|
|
|
'/api': {
|
|
|
|
|
target: 'http://localhost:8080',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
'/audio': {
|
|
|
|
|
target: 'http://localhost:8080',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-09-23 20:54:50 +02:00
|
|
|
})
|