Skip to content

Commit

Permalink
Fixed hot reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Scaramax committed Dec 12, 2024
1 parent f7314de commit 0f96b05
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Docker image tag
TAG=local

GATEWAY_PORT=8012
GATEWAY_PORT=7001

JWT_SECRET_KEY=defaultvalue

Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ services:
interval: 1s
timeout: 2s
retries: 30
volumes:
- ./frontend/src:/app/src
- /app/node_modules
db:
container_name: db-${TAG}
image: postgres:16.4
Expand Down
10 changes: 4 additions & 6 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ export default defineConfig(({ mode }) => {
server: {
host: true,
port: 5173,
...(mode === "development" && {
hmr: {
path: "/hmr",
port: 7001,
},
}),
hmr: {
path: "/hmr",
port: 7001,
},
},
resolve: {
alias: {
Expand Down

0 comments on commit 0f96b05

Please sign in to comment.