From 637863ea02ef8bf8bc3c66c9fd45e87379f3566b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 6 Sep 2022 12:46:32 +0200 Subject: [PATCH] fix(cli): When no excludeEndpoints are defined, use the correct regexp for the history middleware (#4036) --- packages/cli/src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index 7396cf1517..2a90700b73 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -673,7 +673,7 @@ class App { this.restEndpoint, this.endpointWebhook, this.endpointWebhookTest, - ...excludeEndpoints.split(':'), + ...(excludeEndpoints.length ? excludeEndpoints.split(':') : []), ].join('|')})/?.*$`, ), to: (context) => {