i think this might work

This commit is contained in:
2025-07-27 17:13:21 +02:00
parent e3d8ba1017
commit c3c74bb21f
18 changed files with 123 additions and 104 deletions

View File

@@ -21,7 +21,9 @@ function createWindow() {
// Load the Next.js app
if (isDev) {
mainWindow.loadURL('http://localhost:3000');
const baseUrl = process.env.BASE_URL || '';
const url = `http://localhost:3000${baseUrl}`;
mainWindow.loadURL(url);
mainWindow.webContents.openDevTools();
} else {
mainWindow.loadFile(path.join(__dirname, '../.next/server/pages/index.html'));