feat: Add initial Electron frontend package.json with dependencies, scripts, and build configuration.
This commit is contained in:
@@ -94,7 +94,7 @@ function createWindow() {
|
||||
const isDev = process.env.npm_lifecycle_event === 'electron:dev';
|
||||
|
||||
if (isDev) {
|
||||
mainWindow.loadURL('http://localhost:5173');
|
||||
mainWindow.loadURL(process.env.VITE_DEV_URL || 'http://localhost:5173');
|
||||
mainWindow.webContents.openDevTools();
|
||||
} else {
|
||||
// Production: Load the built file
|
||||
|
||||
Reference in New Issue
Block a user