mirror of
https://github.com/vercel/commerce.git
synced 2025-03-15 06:52:32 +00:00
* Update product types * Cart types progress, add zod & initial schema validator * Update normalize.ts * Update with-schema-parser.ts * Updated types, schemas & providers * Fix providers after schema parse errors * Fix paths * More provider fixes * Fix kibocommerce & commercejs * Add customer updated types & fixes * Add checkout & customer types * Import core types only from commerce * Update tsconfig.json * Convert hooks interfaces to types * Requested changes * Change to relative paths * Move Zod dependency
Saleor Provider
Demo: https://saleor.vercel.store/
You need a Saleor instance, either in the cloud or self-hosted.
This provider requires Saleor 3.x or higher.
Copy the .env.template
file in this directory to .env.local
in the main directory (which will be ignored by Git):
cp packages/saleor/.env.template .env.local
Then, set the environment following variables in your .env.local
. Both, NEXT_PUBLIC_SALEOR_API_URL
and COMMERCE_IMAGE_HOST
must point to your own Saleor instance.
COMMERCE_PROVIDER=saleor
NEXT_PUBLIC_SALEOR_API_URL=https://vercel.saleor.cloud/graphql/
NEXT_PUBLIC_SALEOR_CHANNEL=default-channel
COMMERCE_IMAGE_HOST=vercel.saleor.cloud