@zengenti/contensis-react-base 3.0.1 → 3.0.2-beta.0

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.
@@ -14,7 +14,7 @@ import { Op, Query } from 'contensis-core-api';
14
14
  import { s as setCachingHeaders, u as url } from './urls-eac9a747.js';
15
15
  import 'isomorphic-fetch';
16
16
  import express from 'express';
17
- import { Server } from 'http';
17
+ import http from 'http';
18
18
  import httpProxy from 'http-proxy';
19
19
  import fs from 'fs';
20
20
  import path from 'path';
@@ -4386,7 +4386,7 @@ const webApp = (app, ReactApp, config) => {
4386
4386
  };
4387
4387
 
4388
4388
  const app = express();
4389
- let server = new Server(); // new Server() is just a stub to assert the type for the export
4389
+ const server = http.createServer(app);
4390
4390
 
4391
4391
  const start = (ReactApp, config, ServerFeatures) => {
4392
4392
  global.PACKAGE_JSON = config.packagejson;
@@ -4403,7 +4403,7 @@ const start = (ReactApp, config, ServerFeatures) => {
4403
4403
  staticAssets(app, config);
4404
4404
  webApp(app, ReactApp, config);
4405
4405
  app.on('ready', async () => {
4406
- server = app.listen(3001, () => {
4406
+ server.listen(3001, () => {
4407
4407
  console.info(`HTTP server is listening @ port 3001`);
4408
4408
  setTimeout(function () {
4409
4409
  app.emit('app_started');