Skip to content

DuckDBInitOptions

Defined in: db/duckdb.ts:32

How initDuckDB should source the DuckDB-wasm worker/wasm assets.

The app (which owns a bundler) resolves the self-hosted asset URLs and passes them in via bundles; uneri itself stays bundler-neutral and never references ?url/new URL(..., import.meta.url). When bundles is omitted the legacy jsDelivr CDN path is used so existing consumers keep working.

optional bundles?: DuckDBBundleUrls

Defined in: db/duckdb.ts:34

Pre-resolved self-hosted bundle URLs. Omit to use the jsDelivr CDN.


optional fallbackToJsDelivr?: boolean

Defined in: db/duckdb.ts:41

When bundles is set, permit a last-ditch jsDelivr CDN attempt if every local attempt fails. Defaults to false: an explicitly self-hosted setup should fail loudly rather than silently reaching the network, which is the whole point of going hermetic. Ignored when bundles is omitted.