We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a70dfdf commit 8722573Copy full SHA for 8722573
electron/main.cjs
@@ -47,7 +47,12 @@ function createWindow() {
47
mainWindow.loadURL('http://localhost:5173')
48
mainWindow.webContents.openDevTools()
49
} else {
50
- mainWindow.loadFile(path.join(__dirname, '../dist/index.html'))
+ const indexPath = path.join(__dirname, '../dist/index.html')
51
+ console.log('Loading index.html from:', indexPath)
52
+ console.log('File exists:', fs.existsSync(indexPath))
53
+ mainWindow.loadFile(indexPath)
54
+ // Temporarily open DevTools in production to debug
55
+ mainWindow.webContents.openDevTools()
56
}
57
58
// Create application menu
0 commit comments