Skip to content

Commit

Permalink
HMR in docker-compose-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneikennedy committed Jun 7, 2024
1 parent 2507fa1 commit 1adabc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions client/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ export default defineConfig(({ command, mode }) => {
global: 'window'
},
server: {
port: 3000,
open: true,
proxy: {
clearScreen: false,
port: 4000,
open: false,
proxy: {
'/api': {
target: env.APP_BASE_URL || 'http://localhost:8080'
},
Expand Down
4 changes: 3 additions & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1adabc5

Please sign in to comment.