Skip to content

Commit

Permalink
[dashboard] Set correct port for hot reload to work
Browse files Browse the repository at this point in the history
  • Loading branch information
geropl committed Sep 20, 2023
1 parent 7ec5410 commit c757de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/dashboard/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = {
client: {
webSocketURL: {
hostname: process.env.HMR_HOST ? new URL(process.env.HMR_HOST).hostname : "localhost",
port: process.env.HMR_HOST ? 443 : 3000,
port: process.env.HMR_HOST ? 443 : 3001,
protocol: "wss",
},
},
Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"web-vitals": "^1.1.1"
},
"scripts": {
"start": "BROWSER=none HMR_HOST=`gp url 3000` craco start",
"start": "BROWSER=none HMR_HOST=`gp url 3001` craco start",
"build": "craco build --verbose",
"lint": "eslint --max-warnings=0 --ext=.jsx,.js,.tsx,.ts ./src",
"test": "yarn test:unit",
Expand Down

0 comments on commit c757de3

Please sign in to comment.