mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 05:31:22 +00:00
Updated readme instructions on provider config
This commit is contained in:
parent
3259c6d742
commit
bfae57653f
21
README.md
21
README.md
@ -71,25 +71,9 @@ Next.js Commerce provides a set of utilities and functions to create new provide
|
|||||||
|
|
||||||
### How to change providers
|
### 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
|
Comment or remove environment variables of other providers to avoid conflicts.
|
||||||
{
|
|
||||||
"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.
|
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|
||||||
@ -103,7 +87,6 @@ Every provider defines the features that it supports under `framework/{provider}
|
|||||||
- You'll see a config file like this:
|
- You'll see a config file like this:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"provider": "bigcommerce",
|
|
||||||
"features": {
|
"features": {
|
||||||
"wishlist": false
|
"wishlist": false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user