Skip to content

Commit

Permalink
Fixed GitHub client ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Schweblin committed Jan 4, 2018
1 parent 1b79c73 commit 2d75c48
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions build/dev-server.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
require('./check-versions')()

var config = require('../config')
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
}
if (!process.env.GOOGLE_CLIENT_ID) {
process.env.GOOGLE_CLIENT_ID = JSON.parse(config.dev.env.GOOGLE_CLIENT_ID)
}
Object.entries(config.dev.env).forEach(([key, value]) => {
if (!process.env[key]) {
process.env[key] = JSON.parse(value);
}
});

var opn = require('opn')
var path = require('path')
Expand Down
11 changes: 5 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
const env = require('./config/prod.env');

if (!process.env.NODE_ENV) {
process.env.NODE_ENV = JSON.parse(env.NODE_ENV);
}
if (!process.env.GOOGLE_CLIENT_ID) {
process.env.GOOGLE_CLIENT_ID = JSON.parse(env.GOOGLE_CLIENT_ID);
}
Object.entries(env).forEach(([key, value]) => {
if (!process.env[key]) {
process.env[key] = JSON.parse(value);
}
});

const http = require('http');
const https = require('https');
Expand Down

0 comments on commit 2d75c48

Please sign in to comment.