Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Prince527GitHub committed Apr 28, 2024
1 parent 06aa39d commit 54c0b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { envString, envJSON } = require("./packages/env");
const fs = require("fs");

console.log(fs.existsSync("./config.json"))
console.log(`Why "${fs.existsSync("./config.json")}"`)

if (fs.existsSync("./config.json")) global.config = require("./config.json");
else global.config = envJSON(envString(require('dotenv').config()));
Expand Down

0 comments on commit 54c0b69

Please sign in to comment.