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): remove env vars defaults, remove global.window patc…
Browse files Browse the repository at this point in the history
…h, remove babel-core/register
  • Loading branch information
Metnew committed Aug 4, 2017
1 parent e860567 commit 8a360a2
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions src/server/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
require('babel-core/register')
// NOTE: uncomment these lines below if you use scss/sass!
// require.extensions['.scss'] = () => {}
// require.extensions['.css'] = () => {}
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')
global.i18n = str => str
global.fetch = require('isomorphic-fetch')

// import app
require('./server')

0 comments on commit 8a360a2

Please sign in to comment.