We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 589858f commit 42cb3eeCopy full SHA for 42cb3ee
whatsapp/src/index.js
@@ -1,11 +1,13 @@
1
const path = require("path")
2
3
-require("dotenv").config({
4
- path: path.resolve(
5
- process.cwd(),
6
- process.env.ENV === "local" ? ".env.local" : ".env"
7
- ),
8
-})
+if (process.env.ENV !== "production") {
+ require("dotenv").config({
+ path: path.resolve(
+ process.cwd(),
+ process.env.ENV === "local" ? ".env.local" : ".env"
+ ),
9
+ })
10
+}
11
12
const { Client, LocalAuth } = require("whatsapp-web.js")
13
const qrcode = require("qrcode-terminal")
0 commit comments