Skip to content

Commit

Permalink
docs: Update best practices for env (tinacms#1393)
Browse files Browse the repository at this point in the history
* docs: Update best practices for env

* Update connecting-site.md

fix typo
  • Loading branch information
jamespohalloran authored Sep 7, 2022
1 parent 3b18c69 commit c149e2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Source code for the [tina.io](https://tina.io) website.
## Development

```
cp .env.example .env.local
cp .env.example .env
yarn install
yarn develop
```
Expand Down
2 changes: 1 addition & 1 deletion content/blog/manage-your-media-with-cloudinary.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ or
npm install next-tinacms-cloudinary
```

You also need to add your Cloudinary cloud name, API key and API secret from your Cloudinary account, to your `.env.local` file which you can find in your Cloudinary Dashboard.
You also need to add your Cloudinary cloud name, API key and API secret from your Cloudinary account, to your `.env` file which you can find in your Cloudinary Dashboard.

```other
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=
Expand Down
2 changes: 1 addition & 1 deletion content/docs/reference/media/cloudinary.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default createMediaHandler({
api_secret: process.env.CLOUDINARY_API_SECRET,
authorized: async (req, _res) => {
try {
if (process.env.NEXT_PUBLIC_USE_LOCAL_CLIENT) {
if (process.env.NODE_ENV == 'development') {
return true
}

Expand Down

0 comments on commit c149e2a

Please sign in to comment.