diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index 7396cf151..2a90700b7 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) => {