From 7a042b60afb3b09b3d8c3225cdfadbcb5a96d6bb Mon Sep 17 00:00:00 2001 From: Murat Ozcan Date: Wed, 4 May 2022 08:26:52 -0500 Subject: [PATCH] updated COMMERCE_PROVIDER to be @vercel/commerce-shopify --- site/comments.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/comments.md b/site/comments.md index b25296028..f2866c913 100644 --- a/site/comments.md +++ b/site/comments.md @@ -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`