Boulangerie_Website/frontend/vite.config.js
Louis Mazin 69da08d133 test
2026-09-15 00:35:38 +02:00

23 lines
422 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:1029',
changeOrigin: true,
secure: false,
rewrite: (path) => path.replace(/^\/api/, '/api')
}
}
},
preview: {
allowedHosts: [
'boulangerie.louismazin.ovh'
]
}
})