We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 781cfbf + 3bd7996 commit b387b23Copy full SHA for b387b23
server/src/server.ts
@@ -9,7 +9,6 @@ import { getNextServer } from 'next-utils';
9
import { logger } from 'srcCommon/logger';
10
import path from 'path';
11
import { injectNextImageCacheDir } from 'cache/image-cache-handler';
12
-import { websockets } from './websockets';
13
14
const promMiddleware = promBundle({
15
metricsPath: '/internal/metrics',
@@ -89,10 +88,6 @@ nextApp.prepare().then(async () => {
89
88
logger.info(`Server started on port ${port}`);
90
});
91
92
- if (process.env.ENV === 'localhost') {
93
- websockets(expressServer);
94
- }
95
-
96
const httpTerminator = createHttpTerminator({ server: expressServer });
97
98
const shutdown = () => {
server/src/websockets.ts
0 commit comments