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 10, 2024
1 parent ff3acaf commit 13afc2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions client/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'
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 13afc2f

Please sign in to comment.