Skip to content

TypeScript API / @contentia/decap / ResolveContentiaBackendOptions

Interface: ResolveContentiaBackendOptions ​

Properties ​

dev? ​

ts
dev?: boolean;

Override for import.meta.env.DEV. Real call sites can omit this, since it is read directly, so tests are the only ones expected to pass it, to exercise both branches deterministically without a bundler. Anything falsy (including when import.meta.env itself is not defined, e.g. outside a Vite build) fails safe to remote.


local? ​

ts
local?: LocalContentiaBackendOptions;

Local-mode overrides, applied when the dev flag is truthy. Optional: omit to use the DEFAULT_LOCAL_BACKEND_BASE_PATH / DEFAULT_LOCAL_BACKEND_DEV_TOKEN defaults.


remote ​

ts
remote: ContentiaBackendModuleConfig;

The remote backend config, the backend: block built for the OAuth flow createContentiaBackend drives. Returned as-is whenever the dev flag is not truthy.