From 00c816fd9ccccd78ab4b1d5786d52c0b8922dc19 Mon Sep 17 00:00:00 2001 From: Daniel Cousens <413395+dcousens@users.noreply.github.com> Date: Wed, 14 Feb 2024 15:03:57 +1100 Subject: [PATCH] stop config.server.cors type blocking false values --- packages/core/src/types/config/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/types/config/index.ts b/packages/core/src/types/config/index.ts index a00c9912f1d..8e6916585e2 100644 --- a/packages/core/src/types/config/index.ts +++ b/packages/core/src/types/config/index.ts @@ -193,8 +193,8 @@ export type AdminFileToWrite = // config.server export type ServerConfig = { - /** Configuration options for the cors middleware. Set to `true` to use core Keystone defaults */ - cors?: CorsOptions | true + /** Configuration options for the cors middleware. Set to `true` to use Keystone's defaults */ + cors?: boolean | CorsOptions /** Maximum upload file size allowed (in bytes) */ maxFileSize?: number