| name | framework |
|---|---|
| description | HTTP and retry integration — @contentstack/core with httpClient on the Delivery SDK stack. |
src/stack/contentstack.tsimportshttpClient,retryRequestHandler,retryResponseErrorHandler,retryResponseHandlerfrom@contentstack/coreand composes them with stack-specific headers, live_preview, and cache-related request handling (handleRequest).
- Retry behavior shared across Contentstack TS clients → prefer
@contentstack/core(contentstack-js-core repo) if appropriate; otherwise document SDK-only overrides here. - Base URL / region —
getHostforRegionand StackConfig.host insrc/common/utils.ts(verify imports from currentcontentstack.ts).
- Unit — mock HTTP layers; API — full stack via
stackInstance().
.cursor/rules/contentstack-delivery-typescript.mdc