From 0be719d9321361eef150565ec9f06654230b99bb Mon Sep 17 00:00:00 2001 From: Shane Kennedy Date: Thu, 27 Jun 2024 21:58:25 +0200 Subject: [PATCH] feat(ui): hmr in docker-compose-dev (#1818) --- client/vite.config.mjs | 5 +++-- docker-compose-dev.yml | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/vite.config.mjs b/client/vite.config.mjs index f6100dbb0..c0f693502 100644 --- a/client/vite.config.mjs +++ b/client/vite.config.mjs @@ -32,8 +32,9 @@ export default defineConfig(({ command, mode }) => { global: 'window' }, server: { - port: 3000, - open: true, + clearScreen: false, + port: 4000, + open: false, proxy: { '/api': { target: env.APP_BASE_URL || 'http://localhost:8080' diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 4a8c56762..0b546d862 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -33,8 +33,10 @@ services: ui: image: node:lts - command: 'sh -c "npm install && npm run build && npm run preview"' + command: 'sh -c "npm install && npm run start -- --host"' working_dir: /app/client + environment: + - APP_BASE_URL=http://akhq:8080 tty: true volumes: - ./:/app:z