Skip to content

Changed the raw URL to encoded URL and the decode using base64 in bac…#2

Open
NikhilYadav04 wants to merge 1 commit intooldregime:mainfrom
NikhilYadav04:fix/base_url_encode_base64
Open

Changed the raw URL to encoded URL and the decode using base64 in bac…#2
NikhilYadav04 wants to merge 1 commit intooldregime:mainfrom
NikhilYadav04:fix/base_url_encode_base64

Conversation

@NikhilYadav04
Copy link

…kend/config/db.js

Fixed issue #1

Replaced hardcoded MongoDB URI with Base64-encoded fallback for better security.

Added decoding logic to connectDB.js using Buffer.from(..., 'base64').

Updated .gitignore to exclude .env and sensitive files from version control.

Recommended storing the encoded URI in .env (as ENCODED_DATABASE_URL) and accessing it via process.env for enhanced protection.

image

@vercel
Copy link

vercel bot commented Nov 9, 2025

@NikhilYadav04 is attempting to deploy a commit to the oldregime's projects Team on Vercel.

A member of the Team first needs to authorize it.

@oldregime
Copy link
Owner

hello
may i just ask how did you found this repo??

@NikhilYadav04
Copy link
Author

NikhilYadav04 commented Nov 10, 2025

hello may i just ask how did you found this repo??

i was looking for some issues to work on, so through goodfirstissues.com i found your repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants