Skip to content

Commit f6dedd2

Browse files
committed
fix: restrict IS_OPAMP_ONLY to dev
1 parent 3d0542f commit f6dedd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/api/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class Server {
4646

4747
async start() {
4848
const runningServers: http.Server[] = [];
49-
if (!config.IS_DEV || !config.IS_OPAMP_ONLY) {
49+
if (!(config.IS_DEV && !config.IS_OPAMP_ONLY)) {
5050
this.appServer = this.createAppServer();
5151
this.appServer.keepAliveTimeout = 61000; // Ensure all inactive connections are terminated by the ALB, by setting this a few seconds higher than the ALB idle timeout
5252
this.appServer.headersTimeout = 62000; // Ensure the headersTimeout is set higher than the keepAliveTimeout due to this nodejs regression bug: https://github.com/nodejs/node/issues/27363

0 commit comments

Comments
 (0)