graphql-engine/console/src/config.js

23 lines
404 B
JavaScript
Raw Normal View History

2018-06-28 07:57:37 +03:00
/* @flow */
const hasuraConfig = require('../hasuraconfig');
const host = hasuraConfig.appHost;
const port = hasuraConfig.port[process.env.NODE_ENV || 'development'];
const environment = {
development: {
isProduction: false,
},
production: {
isProduction: true,
},
}[process.env.NODE_ENV || 'development'];
module.exports = Object.assign(
{
host,
port,
2018-06-28 07:57:37 +03:00
},
environment
);