Closed crianonim closed 5 years ago
For example: handler.js: line 5
handler.js
const env = require("dotenv").config();
Since you never use env you do not need to create a global variable
env
ya can just write
require("dotenv").config();
Plus further down line 46 const newsKey = process.env.DBAPIKEYNEWS; DB is usually used for databases, not APIs, it's just naming convention.
For example:
handler.js
: line 5Since you never use
env
you do not need to create a global variable