For the complete documentation index, see llms.txt. This page is also available as Markdown.

Index

@venuecms/sdk-next


@venuecms/sdk-next

Configuration

Function
Description

Allows you to pass in the siteKey and API key manually in case you want it to be dynamically set. If you don't use this function, the SDK will default to using process.env.VENUE_SITE_KEY and process.env.VENUE_API_KEY instead.

Sites

Function
Description

Get the site configured via the siteKey (cached)

Get the siteKey and site id from a domain name.

Search a site for all content types (cached)

Events

Function
Description

Retrieve data for a single event (cached)

Get a list of events (cached)

Pages

Function
Description

Get a single page using the slug (cached)

Get a list of all pages (cached)

Profiles

Function
Description

Get a profile (cached)

Get a listing of events for a profile (cached)

Get a listing of products for a profile (cached)

Get a list of profiles (cached)

Products

Function
Description

Get a product (cached)

Get a listing of products (cached)

Utilities

Function
Description

This function will properly resolve content blocks that are localized. It takes in the array of localized content and returns the proper content to be used in your page.

Other

Name
Description

Component form of useEmbedResize. Renders nothing. Mounted once by VenueContent; can also be placed in a layout if rendering embeds elsewhere.

News

Function
Description

Get a list of all news items (cached)

Get a single news item using the slug (cached)

Tags

Function
Description

Get a listing of tags in use

Last updated