Update startup resources in run-electron-dev script
This commit is contained in:
@@ -6,7 +6,7 @@ const projectRoot = path.resolve(__dirname, '..')
|
|||||||
const electronBinary = require('electron')
|
const electronBinary = require('electron')
|
||||||
const relaunchExitCode = 75
|
const relaunchExitCode = 75
|
||||||
const devServerUrl = process.env.VITE_DEV_SERVER_URL || 'http://127.0.0.1:5173'
|
const devServerUrl = process.env.VITE_DEV_SERVER_URL || 'http://127.0.0.1:5173'
|
||||||
const startupResources = ['tcp:127.0.0.1:5173', 'tcp:127.0.0.1:8000']
|
const startupResources = ['http-get://127.0.0.1:5173', 'http-get://127.0.0.1:8000/health']
|
||||||
const env = {
|
const env = {
|
||||||
...process.env,
|
...process.env,
|
||||||
VITE_DEV_SERVER_URL: devServerUrl,
|
VITE_DEV_SERVER_URL: devServerUrl,
|
||||||
@@ -17,6 +17,7 @@ const env = {
|
|||||||
async function waitForDependencies() {
|
async function waitForDependencies() {
|
||||||
await waitOn({
|
await waitOn({
|
||||||
resources: startupResources,
|
resources: startupResources,
|
||||||
|
proxy: false,
|
||||||
timeout: 120000,
|
timeout: 120000,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user