From c83ad752ca61c5859909cc92f2569c825997af04 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 19 Jan 2023 16:19:11 -0500 Subject: [PATCH] chore: only sets local to false if local is undefined --- src/initHTTP.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/initHTTP.ts b/src/initHTTP.ts index f40bcc6cad..f2c6c92baa 100644 --- a/src/initHTTP.ts +++ b/src/initHTTP.ts @@ -21,7 +21,7 @@ import mountEndpoints from './express/mountEndpoints'; import { Payload, getPayload } from './payload'; export const initHTTP = async (options: InitOptions): Promise => { - options.local = false; + if (typeof options.local === 'undefined') options.local = false; const payload = await getPayload(options); if (!options.local) {