Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions components/dashboard/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ module.exports = {
],
},
},
devServer: {
client: {
webSocketURL: {
hostname: process.env.HMR_HOST ? new URL(process.env.HMR_HOST).hostname : "localhost",
port: process.env.HMR_HOST ? 443 : 3000,
protocol: "wss",
},
},
},
...when(process.env.GP_DEV_HOST && process.env.GP_DEV_COOKIE, () => ({
devServer: {
proxy: {
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": "craco start",
"start": "BROWSER=none HMR_HOST=`gp url 3000` craco start",
"build": "craco build --verbose",
"lint": "eslint --max-warnings=0 --ext=.jsx,.js,.tsx,.ts ./src",
"test": "yarn test:unit",
Expand Down