-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I had another program using port 5173. This caused VITE to launch on another port, but electron was only trying to load 5173. I made this local patch in src/main/index.ts to fix the issue:
- console.log('VITE_DEV_SERVER_URL:', process.env.VITE_DEV_SERVER_URL);
-
console.log('ELECTRON_RENDERER_URL:', process.env.ELECTRON_RENDERER_URL);
-
console.log('VITE_DEV_SERVER_URL:', process.env.VITE_DEV_SERVER_URL);
if (isDev) {
- const devServerUrl = process.env.VITE_DEV_SERVER_URL || 'http://localhost:5173';
- const devServerUrl =
-
process.env.ELECTRON_RENDERER_URL || -
process.env.VITE_DEV_SERVER_URL || -
console.log('Loading from dev server:', devServerUrl);
'http://localhost:5173';
mainWindow.loadURL(devServerUrl).catch(err => {
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels