From f69de9a8df7e25c7537cd93b87b96ef650f909a6 Mon Sep 17 00:00:00 2001 From: Louis Mazin Date: Tue, 15 Sep 2026 00:42:21 +0200 Subject: [PATCH] nice --- frontend/vite.config.js | 11 ----------- start.sh | 3 ++- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/frontend/vite.config.js b/frontend/vite.config.js index cd62e6a..0fb3c7f 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -4,17 +4,6 @@ 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' diff --git a/start.sh b/start.sh index 3288424..464c179 100644 --- a/start.sh +++ b/start.sh @@ -54,13 +54,14 @@ if [ ! -x "node_modules/.bin/vite" ]; then npm ci fi + echo "Build React..." npm run build 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=$! # --------------------------------------