Skip to content

Commit

Permalink
remove websocketServerCreator on production build
Browse files Browse the repository at this point in the history
  • Loading branch information
htdangkhoa committed Jan 23, 2022
1 parent b66c8df commit 0d36711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import favicon from 'serve-favicon';
import compression from 'compression';
import serve from 'serve-static';

import websocketServerCreator from './websocket-server-creator';
import render from '../render';
import users from '../db/users.json';

Expand All @@ -17,6 +16,7 @@ app.use(helmet({ contentSecurityPolicy: false }));
app.use(serve(resolve(process.cwd(), 'public')));

/* istanbul ignore next */
const websocketServerCreator = __DEV__ ? require('./websocket-server-creator').default : undefined;
const webpackMiddleware = __DEV__ ? require('../middlewares/webpack.middleware').default : undefined;

/* istanbul ignore next */
Expand Down

0 comments on commit 0d36711

Please sign in to comment.