Skip to content

Commit

Permalink
Fix wait-on hangs
Browse files Browse the repository at this point in the history
Replace tcp:3000 with tcp:127.0.0.1:3000

jeffbski/wait-on#79
jeffbski/wait-on#116

Vite server.host is '127.0.0.1' by default
https://vitejs.dev/config/#server-host
  • Loading branch information
noriyotcp committed Apr 23, 2022
1 parent e4caeda commit 5938b24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "tsc -b main-process/ && vite",
"build": "tsc --noEmit && vite build",
"serve": "vite preview",
"electron": "wait-on tcp:3000 && cross-env IS_DEV=true electron .",
"electron": "wait-on tcp:127.0.0.1:3000 && cross-env IS_DEV=true electron .",
"electron:pack": "electron-builder --dir",
"electron:dev": "concurrently -k \"cross-env BROWSER=none yarn dev\" \"yarn electron\"",
"electron:builder": "electron-builder",
Expand Down

0 comments on commit 5938b24

Please sign in to comment.