Skip to main content
The SDK provides a Vue 3 composable and works with both the Composition API and Nuxt.

Vue Composable

The SDK exports a useStorefront composable:

Direct Initialization

You can also use createStorefrontSDK directly and provide it via Vue’s dependency injection:

Cart Composable Example

Environment Variables

Vite exposes environment variables prefixed with VITE_ to client-side code. Never prefix secret keys with VITE_.