mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-05-25 10:23:36 +08:00
25 lines
447 B
JavaScript
25 lines
447 B
JavaScript
/* @flow */
|
|
const hasuraConfig = require('../hasuraconfig');
|
|
|
|
const host = hasuraConfig.appHost;
|
|
const port = hasuraConfig.port[process.env.NODE_ENV || 'development'];
|
|
|
|
// require('babel-polyfill');
|
|
|
|
const environment = {
|
|
development: {
|
|
isProduction: false,
|
|
},
|
|
production: {
|
|
isProduction: true,
|
|
},
|
|
}[process.env.NODE_ENV || 'development'];
|
|
|
|
module.exports = Object.assign(
|
|
{
|
|
host: host,
|
|
port: port,
|
|
},
|
|
environment
|
|
);
|