Skip to content

Commit

Permalink
docs(examples): do not call dotenv in code
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Feb 17, 2022
1 parent 97c9861 commit 269a759
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions examples/file-and-cloudinary-upload/app/utils/utils.server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import dotenv from "dotenv";
import cloudinary from "cloudinary";
import type { Stream } from "stream";

dotenv.config();
cloudinary.v2.config({
cloud_name: process.env.CLOUD_NAME,
api_key: process.env.API_KEY,
Expand Down
2 changes: 1 addition & 1 deletion examples/file-and-cloudinary-upload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "",
"scripts": {
"build": "remix build",
"dev": "remix dev",
"dev": "node -r dotenv/config node_modules/.bin/remix dev",
"postinstall": "remix setup node",
"start": "remix-serve build"
},
Expand Down

0 comments on commit 269a759

Please sign in to comment.