updated COMMERCE_PROVIDER to be @vercel/commerce-shopify

This commit is contained in:
Murat Ozcan 2022-05-04 08:26:52 -05:00
parent 98cf8d05d2
commit 7a042b60af

View File

@ -201,12 +201,14 @@ describe('Header', () => {
For this to work, first we need a 4th environment variable in `.env.local`:
```
COMMERCE_PROVIDER=shopify
COMMERCE_PROVIDER=@vercel/commerce-shopify
NEXT_PUBLIC_SHOPIFY_STOREFRONT_ACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxx
NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN=xxxxxxxxxxxxxxxxxxxxxxxxxxxx
NEXT_PUBLIC_COMMERCE_SEARCH_ENABLED=true
```
Mind `COMMERCE_PROVIDER=@vercel/commerce-shopify` and not just `shopify`. This is in the readme.
And we have to make the following change at `site/components/common/Navbar/Navbar.tsx`.
TL, DR; replace `process.env.COMMERCE_SEARCH_ENABLED` with `process.env.NEXT_PUBLIC_COMMERCE_SEARCH_ENABLED`