This commit is contained in:
Louis Mazin 2026-09-15 00:42:21 +02:00
parent 69da08d133
commit f69de9a8df
2 changed files with 2 additions and 12 deletions

View File

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

View File

@ -54,13 +54,14 @@ if [ ! -x "node_modules/.bin/vite" ]; then
npm ci npm ci
fi fi
echo "Build React..." echo "Build React..."
npm run build npm run build
echo "Démarrage frontend sur :1028" echo "Démarrage frontend sur :1028"
npm run preview --host 0.0.0.0 --port 1028 & npm run preview -- --host 0.0.0.0 --port 1028 &
FRONTEND_PID=$! FRONTEND_PID=$!
# -------------------------------------- # --------------------------------------