i think this might work
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user