From 7b1223d2c58007ef1638cfc658cf272875833693 Mon Sep 17 00:00:00 2001 From: Its-treason <39559178+Its-treason@users.noreply.github.com> Date: Tue, 24 Oct 2023 18:40:01 +0200 Subject: [PATCH] feat(#740): Add hints for local bruno setup - Custom error when opening bruno in the browser - Custom error when starting electron without the web server running - Force Next dev server to use port 3000 --- packages/bruno-app/package.json | 2 +- packages/bruno-app/src/pages/_app.js | 9 +++++++++ packages/bruno-electron/src/index.js | 16 +++++++++++++++- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/package.json b/packages/bruno-app/package.json index b23d7459..c3f82569 100644 --- a/packages/bruno-app/package.json +++ b/packages/bruno-app/package.json @@ -3,7 +3,7 @@ "version": "0.3.0", "private": true, "scripts": { - "dev": "cross-env ENV=dev next dev", + "dev": "cross-env ENV=dev next dev -p 3000", "build": "next build && next export", "start": "next start", "lint": "next lint", diff --git a/packages/bruno-app/src/pages/_app.js b/packages/bruno-app/src/pages/_app.js index 0b2f9c3a..0437555c 100644 --- a/packages/bruno-app/src/pages/_app.js +++ b/packages/bruno-app/src/pages/_app.js @@ -41,6 +41,15 @@ function MyApp({ Component, pageProps }) { return null; } + if (!window.ipcRenderer) { + return ( +