ServerOptions
Defined in: src/server.ts:28
Properties
Section titled “Properties”
optionalcors?:string|boolean
Defined in: src/server.ts:32
Off by default. true allows any origin; a string allows that one origin. Answers preflight requests when on.
hostname?
Section titled “hostname?”
optionalhostname?:string
Defined in: src/server.ts:30
limits?
Section titled “limits?”
optionallimits?:Partial<UnwrapLimits>
Defined in: src/server.ts:34
Overrides for the unwrap limits; maxFileBytes also caps the upload.
optionalnow?:Date
Defined in: src/server.ts:40
Clock for the trusted-list checks.
optionalport?:number
Defined in: src/server.ts:29
trustSnapshot?
Section titled “trustSnapshot?”
optionaltrustSnapshot?:TrustSnapshot|null
Defined in: src/server.ts:36
Trusted-list snapshot for ?euTrust=true. Without one that parameter answers 503.
validation?
Section titled “validation?”
optionalvalidation?:ValidateOptions
Defined in: src/server.ts:38
Where the validator bundles are read from.