OptionalallowedHosts?: readonly string[]Allow only these Host header values. Entries may include a port.
Optionallocals?: (event: RequestEvent) => App.Locals | Record<string, any>Optionalorigin?: string | URLPin event.url to a trusted origin instead of deriving it from the Host header.
Optionalplatform?: (event: RequestEvent) => App.Platform | Record<string, any>
Handler configuration:
routerto route requests with a ServiceRouterrequestto handle requests directlyOptionally provide
localsandplatformfactories to mimic SvelteKit event behavior.