Skip to content

Commit bf2b881

Browse files
committed
Add a start:dev script for localhost development
1 parent 0cc61c9 commit bf2b881

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"main": "src/index.ts",
88
"scripts": {
99
"start": "electron-forge start",
10+
"start:dev": "APP_URL='http://localhost:8080' electron-forge start",
1011
"package": "electron-forge package",
1112
"make": "electron-forge make",
1213
"publish": "electron-forge publish",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { app, BrowserWindow, shell } from 'electron';
44
// tslint:disable-next-line:no-var-requires
55
const packageJson = require('../package.json');
66

7-
const APP_URL = 'https://app.httptoolkit.tech';
7+
const APP_URL = process.env.APP_URL || 'https://app.httptoolkit.tech';
88

99
// Keep a global reference of the window object, if you don't, the window will
1010
// be closed automatically when the JavaScript object is garbage collected.

0 commit comments

Comments
 (0)