mirror of
https://github.com/vercel/commerce.git
synced 2025-06-08 01:06:59 +00:00
updated COMMERCE_PROVIDER to be @vercel/commerce-shopify
This commit is contained in:
parent
98cf8d05d2
commit
7a042b60af
@ -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`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user