fix: .env.local variables a/c to the code variables. #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The coding variables inside the files aren't aligned with the variables in the
.env.local file
. Hence anyone especially if any beginner tries to setup the application, they willl face this error being unable to run their app as thses variables aren't the same.Therefore, I've updated the variables in the
.env.local
files according to the variables requirements from the files.In app/auth.js:
In app/lib/db.js:
const MONGODB_URI = process.env.MONGO_URI //MONGODB_URI in readme
I've fixed it now and requested a PR as well. Hopefully, it will get merged.
Regards