Skip to content

Commit

Permalink
chore: ensure env is working
Browse files Browse the repository at this point in the history
  • Loading branch information
Williancc1557 committed May 29, 2023
1 parent aa82598 commit 3efd5c0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
},
"dependencies": {
"bcrypt": "^5.0.1",
"dotenv": "^16.0.3",
"express": "^4.18.1",
"fast-glob": "^3.2.11",
"jsonwebtoken": "^8.5.1",
Expand Down
4 changes: 4 additions & 0 deletions src/main/config/env.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { config } from "dotenv";

config();

export default {
mongoUrl: process.env.MONGO_URL || "mongodb:https://0.0.0.0:27017/auth2",
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
Expand Down
15 changes: 0 additions & 15 deletions vercel.json

This file was deleted.

5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1880,6 +1880,11 @@ doctrine@^3.0.0:
dependencies:
esutils "^2.0.2"

dotenv@^16.0.3:
version "16.0.3"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.3.tgz#115aec42bac5053db3c456db30cc243a5a836a07"
integrity sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==

dynamic-dedupe@^0.3.0:
version "0.3.0"
resolved "https://registry.npmjs.org/dynamic-dedupe/-/dynamic-dedupe-0.3.0.tgz"
Expand Down

1 comment on commit 3efd5c0

@vercel
Copy link

@vercel vercel bot commented on 3efd5c0 May 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.