mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
23 lines
404 B
JavaScript
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
|
|
);
|