GooDrive/frontend/vite.config.js
Louis Mazin ac44c6ed8b nice
2026-10-13 23:47:19 +02:00

35 lines
670 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
plugins: [
react(),
tailwindcss(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
server: {
host: '0.0.0.0',
port: 1028,
proxy: {
'/api': {
target: process.env.VITE_API_PROXY_TARGET || 'http://backend:1029',
changeOrigin: false,
},
},
},
preview: {
allowedHosts: [
'boulangerie.louismazin.ovh',
'app.lefournildubocage.fr'
],
},
})