Add Intelligems Provider

The IntelligemsNextProvider Higher-Order Component will save all relevant data into React Context, which will be available throughout the app as needed.

Example Configuration

import { IntelligemsReactProvider } from "@intelligems/headless/pack"

export default function MyApp({ Component, pageProps }: AppProps) {
  return (
    <>
      <IntelligemsPackProvider
         organizationId={process.env.NEXT_PUBLIC_INTELLIGEMS_ORG_ID}
         storefrontApiToken={process.env.NEXT_PUBLIC_STOREFRONT_ACCESS_TOKEN}
         antiFlicker={true}
      >
        ...
      </IntelligemsPackProvider>
    </>
  )
}

Last updated