Functions
getCraftInstance
Learn how to get the Craft instance with getCraftInstance.
This function provides access to the Craft instance, allowing you to retrieve configuration details like the base URL and authentication token.
const craftInstance = getCraftInstance()
Return Type
type CraftOptions = {
baseUrl: string
authToken: string
contentMapping: ContentMapping
debug?: boolean
enableEntryTypeMapping?: boolean
siteMap?: CraftSites
siteDetectionMode?: SiteDetectionMode
}