diff --git a/stemn-frontend-desktop/config/getStemnEnv.js b/stemn-frontend-desktop/config/getStemnEnv.js index 7354adf4..889d6127 100644 --- a/stemn-frontend-desktop/config/getStemnEnv.js +++ b/stemn-frontend-desktop/config/getStemnEnv.js @@ -1,21 +1,27 @@ require('colors') const stemnEnvs = { + custom: { + API_SERVER: process.env.API_SERVER, + WEBSITE_URL: process.env.WEBSITE_URL, + WEBSOCKET_SERVER: process.env.WEBSOCKET_SERVER, + ELECTRON_CRASH_REPORT_SERVER: process.env.ELECTRON_CRASH_REPORT_SERVER, + }, local: { - WEBSITE_URL: 'http://stemn.com', API_SERVER: 'http://localhost:3000', + WEBSITE_URL: 'http://stemn.com', WEBSOCKET_SERVER: 'http://localhost:8000', ELECTRON_CRASH_REPORT_SERVER: 'https://stemn.com:2096', }, staging: { - WEBSITE_URL: 'https://staging.stemn.com', API_SERVER: 'https://staging.stemn.com', + WEBSITE_URL: 'https://staging.stemn.com', WEBSOCKET_SERVER: 'https://staging.stemn.com:8443', ELECTRON_CRASH_REPORT_SERVER: 'https://staging.stemn.com:2096', }, production: { - WEBSITE_URL: 'https://stemn.com', API_SERVER: 'https://stemn.com', + WEBSITE_URL: 'https://stemn.com', WEBSOCKET_SERVER: 'https://stemn.com:8443', ELECTRON_CRASH_REPORT_SERVER: 'https://stemn.com:2096', }, @@ -29,4 +35,4 @@ module.exports = (stemnEnvType) => { } return stemnEnv -} \ No newline at end of file +} diff --git a/stemn-frontend-website/package.json b/stemn-frontend-website/package.json index e047295b..06de15c1 100644 --- a/stemn-frontend-website/package.json +++ b/stemn-frontend-website/package.json @@ -5,7 +5,6 @@ "license": "MIT", "scripts": { "dev": "node ./scripts/development.js", - "dev:docker": "tmux new -d yarn dev && sleep infinity", "build": "sh ./scripts/build.sh", "analyse": "node ./scripts/analyse.js", "analyse:graph": "webpack-bundle-analyzer ./reports/stats.json",