Skip to content

Overview

Integrate with Swell

Build and deploy a headless commerce storefront with Vercel and Swell. The integration connects your Next.js Commerce project to your Swell store and adds your store ID and public key as environment variables, so you can use Vercel features like Incremental Static Regeneration and Image Optimization.

Swell is an ecommerce platform with subscriptions and B2B pricing built in. Run your store on a Swell theme, or go headless with its Backend and Frontend APIs, GraphQL on the Frontend API and the swell-js SDK.

New to headless? Read how headless commerce works or compare headless commerce platforms.

Instructions

Linked projects get the following environment variables automatically: NEXT_PUBLIC_SWELL_STORE_ID, NEXT_PUBLIC_SWELL_PUBLIC_KEY