FactsOptions.allow
property · packages/media/src/server/facts.ts:22
readonly allow: ReadonlyArray<string>The hosts an original may be read from, matched exactly: cdn.example.com, not a suffix.
Media / foldkit-media/server
interface · packages/media/src/server/facts.ts:20
interface FactsOptions {
readonly allow: ReadonlyArray<string>
readonly maxBytes?: number
readonly cache?: KeyValueStore.KeyValueStore
readonly fetch?: (request: Request) => Promise<Response>
}FactsOptions.allowproperty · packages/media/src/server/facts.ts:22
readonly allow: ReadonlyArray<string>The hosts an original may be read from, matched exactly: cdn.example.com, not a suffix.
FactsOptions.maxBytesproperty · packages/media/src/server/facts.ts:24
readonly maxBytes?: numberThe largest original read, in bytes, counted as it streams.
FactsOptions.cacheproperty · packages/media/src/server/facts.ts:26
readonly cache?: KeyValueStore.KeyValueStoreFacts kept by URL and revalidated with the original's ETag.
FactsOptions.fetchproperty · packages/media/src/server/facts.ts:28
readonly fetch?: (request: Request) => Promise<Response>How to fetch; the platform's fetch by default.