This repository has been archived on 2022-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
gosh-commerce/framework/saleor
2021-09-11 22:49:44 +00:00
..
api Initial commit 2021-09-11 22:49:44 +00:00
auth Initial commit 2021-09-11 22:49:44 +00:00
cart Initial commit 2021-09-11 22:49:44 +00:00
customer Initial commit 2021-09-11 22:49:44 +00:00
product Initial commit 2021-09-11 22:49:44 +00:00
types Initial commit 2021-09-11 22:49:44 +00:00
utils Initial commit 2021-09-11 22:49:44 +00:00
wishlist Initial commit 2021-09-11 22:49:44 +00:00
.env.template Initial commit 2021-09-11 22:49:44 +00:00
commerce.config.json Initial commit 2021-09-11 22:49:44 +00:00
const.ts Initial commit 2021-09-11 22:49:44 +00:00
fetcher.ts Initial commit 2021-09-11 22:49:44 +00:00
index.tsx Initial commit 2021-09-11 22:49:44 +00:00
next.config.js Initial commit 2021-09-11 22:49:44 +00:00
provider.ts Initial commit 2021-09-11 22:49:44 +00:00
README.md Initial commit 2021-09-11 22:49:44 +00:00
schema.d.ts Initial commit 2021-09-11 22:49:44 +00:00
schema.graphql Initial commit 2021-09-11 22:49:44 +00:00
types.ts Initial commit 2021-09-11 22:49:44 +00:00

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