Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid/Missing environment variable: "MONGODB_URI" during login in Next.js application #1720

Open
1 task done
captain-adi opened this issue Oct 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@captain-adi
Copy link

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

  1. Run the application locally.
  2. Click on the "Login" button on the login page.
  3. 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.

Screenshots/Videos

Screenshot 2024-10-13 200935

Additional context

No response

Please checkmark the following checklist

  • I make sure that similar issue is not opened
@captain-adi captain-adi added the bug Something isn't working label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant