Explorar o código

fix: Add dotenv config

fzadrazil %!s(int64=3) %!d(string=hai) anos
pai
achega
02bdf4b61b
Modificáronse 3 ficheiros con 4 adicións e 1 borrados
  1. 2 1
      .gitignore
  2. 1 0
      app.js
  3. 1 0
      package.json

+ 2 - 1
.gitignore

@@ -127,4 +127,5 @@ dist
 .pnp.*
 
 package-lock.json
-.vscode
+.vscode
+.vs

+ 1 - 0
app.js

@@ -1,3 +1,4 @@
+import 'dotenv/config'
 import fetch from "node-fetch"
 import express from "express"
 import bodyParser from "body-parser"

+ 1 - 0
package.json

@@ -12,6 +12,7 @@
   "license": "ISC",
   "dependencies": {
     "body-parser": "^1.19.1",
+    "dotenv": "^14.2.0",
     "express": "^4.17.2",
     "node-fetch": "^3.1.0"
   },