Skip to content

Commit

Permalink
stop config.server.cors type blocking false values
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Feb 14, 2024
1 parent b34ca0a commit 00c816f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/types/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ export type AdminFileToWrite =

// config.server
export type ServerConfig<TypeInfo extends BaseKeystoneTypeInfo> = {
/** 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

Expand Down

0 comments on commit 00c816f

Please sign in to comment.