Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
feat(src/server/index): use process env vars BASE_API and PORT for se…
Browse files Browse the repository at this point in the history
…rver
  • Loading branch information
Metnew committed Jul 15, 2017
1 parent 4c41c6d commit 2611c0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ require('babel-core/register')
global.window = {
addEventListener: () => {}
}
const {BASE_API, PORT} = process.env
process.env.BASE_API = BASE_API ? BASE_API : '/api/v1'
process.env.PORT = PORT ? PORT : 4000
global.i18n = () => {}
global.fetch = require('node-fetch')
require('./server')

0 comments on commit 2611c0e

Please sign in to comment.