File tree 3 files changed +16
-0
lines changed
3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,14 @@ server {
8
8
proxy_set_header Host $http_host;
9
9
proxy_pass http://node:3000;
10
10
}
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
+ }
11
21
}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
4
4
5
5
## [ Unreleased]
6
6
7
+ - Fixed HMR setup.
7
8
- Upgraded @fortawesome/react-fontawesome , react-quill, react-toastify.
8
9
- Removed unused react-dayjs.
9
10
- Remove default props from the project.
Original file line number Diff line number Diff line change @@ -8,5 +8,10 @@ export default defineConfig({
8
8
strictPort : true ,
9
9
port : 3000 ,
10
10
host : "localhost" ,
11
+ hmr : {
12
+ host : "display-admin-client.local.itkdev.dk/ws" ,
13
+ protocol : "wss" ,
14
+ clientPort : 80 ,
15
+ } ,
11
16
} ,
12
17
} ) ;
You can’t perform that action at this time.
0 commit comments