getStoreMeta
Fetches store meta data.
This method sends a GET request to the getStoreMeta endpoint of the Vue Storefront API Middleware. In turn, it receives data from the getStoreMeta endpoint exposed by the BigCommerce API
Signature
declare function getStoreMeta(
props?: GetStoreMetaParameters,
options?: MethodOptions
): Promise<GetStoreMetaResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
props | Optional | GetStoreMetaParameters | |
options | Optional | MethodOptions |
Returns
Returns a response with the site meta data.
Referenced Types
Examples
Fetching site meta data
import { sdk } from '~/sdk.config.ts';
const storeMetaData = await sdk.bigcommerce.getStoreMeta()Fetching site meta data. Sending it this way, the response can be cached safely.
import { sdk } from '~/sdk.config.ts';
const channel = ...
const storeMetaData = await sdk.bigcommerce.getStoreMeta({ channel })