graphql-engine/console/src/config.js
2019-10-07 17:51:02 +05:30

23 lines
404 B
JavaScript

/* @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,
},
environment
);