Skip to content

Commit

Permalink
env
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrehagen committed Mar 18, 2019
1 parent fb494bc commit 70d1407
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
14 changes: 10 additions & 4 deletions stemn-frontend-desktop/config/getStemnEnv.js
Original file line number Diff line number Diff line change
@@ -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',
},
Expand All @@ -29,4 +35,4 @@ module.exports = (stemnEnvType) => {
}

return stemnEnv
}
}
1 change: 0 additions & 1 deletion stemn-frontend-website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 70d1407

Please sign in to comment.