From bfae57653fedccf3e88a71f58dee7fc920d266b6 Mon Sep 17 00:00:00 2001 From: Luis Alvarez Date: Wed, 17 Mar 2021 15:11:44 -0600 Subject: [PATCH] Updated readme instructions on provider config --- README.md | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 885c95e85..079583b77 100644 --- a/README.md +++ b/README.md @@ -71,25 +71,9 @@ Next.js Commerce provides a set of utilities and functions to create new provide ### How to change providers -First, update the provider selected in `commerce.config.json`: +Open `.env.local` and set the environment variables for the provider you would like to use (use `.env.template` as the base). -```json -{ - "provider": "bigcommerce", - "features": { - "wishlist": true - } -} -``` - -Then, change the paths defined in `tsconfig.json` and update the `@framework` paths to point to the right folder provider: - -```json -"@framework": ["framework/bigcommerce"], -"@framework/*": ["framework/bigcommerce/*"] -``` - -Make sure to add the environment variables required by the new provider. +Comment or remove environment variables of other providers to avoid conflicts. ### Features @@ -103,7 +87,6 @@ Every provider defines the features that it supports under `framework/{provider} - You'll see a config file like this: ```json { - "provider": "bigcommerce", "features": { "wishlist": false }