@things-factory/shell 7.0.1-alpha.93 → 7.0.1-alpha.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/shell",
3
- "version": "7.0.1-alpha.93",
3
+ "version": "7.0.1-alpha.97",
4
4
  "description": "Core module for framework",
5
5
  "bin": {
6
6
  "things-factory": "bin/things-factory",
@@ -134,5 +134,5 @@
134
134
  "pg": "^8.7.3",
135
135
  "sqlite3": "^5.0.8"
136
136
  },
137
- "gitHead": "50cb52ff55459ed050508abea46b15e24973dd53"
137
+ "gitHead": "419f85d2d71cda3be37664fc7cc52f2ec73018fe"
138
138
  }
@@ -33,7 +33,13 @@ import { initLicense, checkValidity } from '@things-factory/operato-license-chec
33
33
 
34
34
  import { GraphqlLocalClient } from './graphql-local-client'
35
35
  import { databaseInitializer } from './initializers/database'
36
- import { domainPrivateRouter, domainPublicRouter, globalPrivateRouter, globalPublicRouter, graphqlRouter } from './routers'
36
+ import {
37
+ domainPrivateRouter,
38
+ domainPublicRouter,
39
+ globalPrivateRouter,
40
+ globalPublicRouter,
41
+ graphqlRouter
42
+ } from './routers'
37
43
  import { schema } from './schema'
38
44
  import { Domain } from './service'
39
45
  import { EntityManager } from 'typeorm'
@@ -58,7 +64,6 @@ args.option('webpack', 'webpack configuration file', config.get('webpack'))
58
64
 
59
65
  const flags = args.parse(process.argv)
60
66
 
61
- const path = require('path')
62
67
  const webpack = require('webpack')
63
68
  const webpackConfig = require(flags.webpack || '@things-factory/builder/webpack.config.dev.js')
64
69
 
@@ -98,6 +103,7 @@ const bootstrap = async () => {
98
103
  await databaseInitializer()
99
104
 
100
105
  const app = new Koa<ICustomAppState, ICustomAppContext>() as any
106
+ app.proxy = true
101
107
 
102
108
  app.use(
103
109
  cors({
package/server/server.ts CHANGED
@@ -33,7 +33,13 @@ import { initLicense, checkValidity } from '@things-factory/operato-license-chec
33
33
 
34
34
  import { GraphqlLocalClient } from './graphql-local-client'
35
35
  import { databaseInitializer } from './initializers/database'
36
- import { domainPrivateRouter, domainPublicRouter, globalPrivateRouter, globalPublicRouter, graphqlRouter } from './routers'
36
+ import {
37
+ domainPrivateRouter,
38
+ domainPublicRouter,
39
+ globalPrivateRouter,
40
+ globalPublicRouter,
41
+ graphqlRouter
42
+ } from './routers'
37
43
  import { schema } from './schema'
38
44
  import { domainMiddleware } from './middlewares'
39
45
 
@@ -74,6 +80,7 @@ const bootstrap = async () => {
74
80
  await databaseInitializer()
75
81
 
76
82
  const app = new Koa() as any
83
+ app.proxy = true
77
84
 
78
85
  app.use(
79
86
  cors({