Repository URL to install this package:
|
Version:
1.2.7 ▾
|
@skava/graphql
/
start.js
|
|---|
/**
* @fileoverview this config is for local dev configs
*/
process.env.IS_STANDALONE_GRAPHQL = true
process.env.BASE_URL = 'http://localhost:4000'
// @note - is in skreact config env
process.env.ACCOUNT_CREATE_CAMPAIGN_MESSAGE_ID = '302'
process.env.ACCOUNT_RESET_PASSWORD_CAMPAIGN_MESSAGE_ID = '381'
process.env.ORDER_STATUS_CANCEL_CAMPAIGN_MESSAGE_ID = '369'
process.env.SHOULD_USE_PLAYGROUND = true
process.env.SHOULD_USE_GRAPHIQL = true
process.env.ORDER_CONFIRMATION_CAMPAIGN_MESSAGE_ID = '55'
// process.env.GRAPHQL_TRACING = true
// @todo need to test
// process.env.SHOULD_USE_DYNAMIC_SCHEMA = true
const server = require('./dist/server')
// @todo check if it's listening on port xxx, so we can run prod build here too
// console.log(server)
// const app = server.createApp()
// app.listen(4000, () => console.log('[uxui-apis]', 'listening http://localhost:4000/graphiql'))
process.on('unhandledRejection', exception => {
console.error('unhandledRejection', exception)
// throw exception
})
process.on('unhandledException', exception => {
console.error('unhandledException', exception)
// throw exception
})
module.exports = server