From bfe7176388226bb2911e6901c47387a8816dcfa9 Mon Sep 17 00:00:00 2001 From: Vincent Guillet Date: Fri, 28 Nov 2025 15:27:19 +0100 Subject: [PATCH] Add serve options to angular.json for development environment --- client/angular.json | 11 ++++++++++- client/vite.config.ts | 13 ------------- 2 files changed, 10 insertions(+), 14 deletions(-) delete mode 100644 client/vite.config.ts diff --git a/client/angular.json b/client/angular.json index ff136d7..ae08619 100644 --- a/client/angular.json +++ b/client/angular.json @@ -64,6 +64,15 @@ }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", + "options": { + "buildTarget": "client:build:development", + "host": "0.0.0.0", + "port": 4200, + "proxyConfig": "proxy.conf.json", + "allowedHosts": [ + "dev.vincent-guillet.fr" + ] + }, "configurations": { "production": { "buildTarget": "client:build:production" @@ -104,4 +113,4 @@ "cli": { "analytics": false } -} \ No newline at end of file +} diff --git a/client/vite.config.ts b/client/vite.config.ts deleted file mode 100644 index 443df9b..0000000 --- a/client/vite.config.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { defineConfig } from 'vite'; - -// Angular utilise Vite en interne — cette config surcharge seulement le serveur dev. -export default defineConfig({ - server: { - host: true, // permet 0.0.0.0 => accessible depuis Docker - allowedHosts: [ - 'dev.vincent-guillet.fr' // on autorise ton domaine - ], - strictPort: true, - port: 4200 - } -});