Skip to content

Commit

Permalink
Add support for cjs config files
Browse files Browse the repository at this point in the history
closes #116
  • Loading branch information
GabeDuarteM committed Feb 20, 2024
1 parent ee3f7d2 commit 0090220
Show file tree
Hide file tree
Showing 4 changed files with 6,632 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Then, add the following to your `package.json`:

Feel free to change the output path to whatever you like.

Next, the codegen will expect you to have created a file called either `getContentfulEnvironment.js` or `getContentfulEnvironment.ts`
Next, the codegen will expect you to have created a file called `getContentfulEnvironment.js`, `getContentfulEnvironment.cjs` or `getContentfulEnvironment.ts`
in the root of your project directory, which should export a promise that resolves with your Contentful environment.

The reason for this is that you can do whatever you like to set up your Contentful Management
Expand Down
Loading

0 comments on commit 0090220

Please sign in to comment.