boilerplate-javascript
boilerplate-javascript copied to clipboard
enhancement: update contentful module
Summary
This pull request is to update the contentful module. With this update, more configuration for the client can be set.
Description
With the update to the module, I've specified the environment in the configuration of the client to be master. By default, this is the environment used if not provided. I just wanted to identify two things
- The
environmentcan be configured. - The
environmentcan be set based on what envs theaccessTokenhas access to.
Motivation and Context
I have API keys that talk to specific environments, but I didn't know how to set which environment within my client. After downloading the example boilerplate, I set the environment key in the cofiguration, but it was still communicating with the master environment. Since the contentful` module was out-of-date, I decided to update it.