I'm encountering an issue with my Next.js application when I click the "Login" button. The page crashes with an error related to the missing environment variable MONGODB_URI. The error is thrown from lib/mongodbAdapter.js, and here's the specific message:
To Reproduce
Run the application locally.
Click on the "Login" button on the login page.
The error message is displayed, and the page fails to load.
Expected behavior
The application should log in successfully and proceed to the next page without crashing.
Describe the bug
I'm encountering an issue with my Next.js application when I click the "Login" button. The page crashes with an error related to the missing environment variable MONGODB_URI. The error is thrown from lib/mongodbAdapter.js, and here's the specific message:
To Reproduce
Expected behavior
The application should log in successfully and proceed to the next page without crashing.
Screenshots/Videos
Additional context
No response
Please checkmark the following checklist