mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
* Update README.md to include information on how to add a custom provider (#250) * Update README.md * Updated commerce readme Co-authored-by: Luis Alvarez D <luis@vercel.com> * Remove unused provider config (#459) * Updated core types for commerce provider * Updated bigcommerce provider * Added util method for provider creation * Removed unrequired code from saleor * Updated shopify provider * Updated providers and local setup * Updated saleor setup * Updated swell * Updated vendure * Updated swell-js usage * Removed unrequired import from saleor Co-authored-by: Isiko Saidiali <54436062+SaidiAli@users.noreply.github.com> Co-authored-by: Luis Alvarez D <luis@vercel.com>
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 framework/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