provide more details for Saleor in its README

This commit is contained in:
Zaiste 2021-07-23 11:42:11 +02:00
parent 50c4f558db
commit acdcdf2645
No known key found for this signature in database
GPG Key ID: 15DF7EBC7F2FFE35

View File

@ -12,4 +12,11 @@ Copy the `.env.template` file in this directory to `.env.local` in the main dire
cp framework/saleor/.env.template .env.local cp framework/saleor/.env.template .env.local
``` ```
Then, set the environment variables in `.env.local` to match the ones from your store. 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
```