Skip to content

Commit a2022b2

Browse files
authored
Merge pull request #5 from aroskanalen/feature/hmr
Fixed HMR setup
2 parents 5dbf83c + 7a52a3e commit a2022b2

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.docker/vhost.conf

+10
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,14 @@ server {
88
proxy_set_header Host $http_host;
99
proxy_pass http://node:3000;
1010
}
11+
12+
location /ws {
13+
proxy_set_header X-Forwarded-For $remote_addr;
14+
proxy_set_header Host $http_host;
15+
proxy_pass http://node:3000;
16+
proxy_http_version 1.1;
17+
proxy_set_header Upgrade $http_upgrade;
18+
proxy_set_header Connection "Upgrade";
19+
proxy_set_header X-Real-IP $remote_addr;
20+
}
1121
}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
- Fixed HMR setup.
78
- Upgraded @fortawesome/react-fontawesome, react-quill, react-toastify.
89
- Removed unused react-dayjs.
910
- Remove default props from the project.

vite.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@ export default defineConfig({
88
strictPort: true,
99
port: 3000,
1010
host: "localhost",
11+
hmr: {
12+
host: "display-admin-client.local.itkdev.dk/ws",
13+
protocol: "wss",
14+
clientPort: 80,
15+
},
1116
},
1217
});

0 commit comments

Comments
 (0)