From 7e0bb34ad7b35478e1fb493640af0268e4eb2a53 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Wed, 8 Nov 2017 15:55:33 +0100 Subject: [PATCH] Add debug option to switch between live and dev api --- .vscode/launch.json | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 7d14571f5..abbbdd64b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,10 +4,24 @@ { "type": "node", "request": "launch", - "name": "Electron Main", + "name": "Franz - Test API", "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron", "program": "${workspaceFolder}/build/index.js", - "protocol": "inspector" + "protocol": "inspector", + "env": { + "NODE_ENV": "development" + } + }, + { + "type": "node", + "request": "launch", + "name": "Franz – Live API", + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron", + "program": "${workspaceFolder}/build/index.js", + "protocol": "inspector", + "env": { + "LIVE_API": "1" + } } ] } \ No newline at end of file