Troubleshooting
MongoDB Connection Issues
- Ensure MongoDB is running
- Check
MONGODB_URIin.env.local - Verify network connectivity for cloud databases
Authentication Errors
- Verify
BETTER_AUTH_SECRETis set (min 32 characters) - Check that
BETTER_AUTH_URLmatches your domain - Ensure MongoDB connection is working
Build Errors
- Clear
.nextfolder:rm -rf .next - Reinstall dependencies:
rm -rf node_modules && npm install - Check TypeScript errors:
npm run lint
Source captured: 2026-10-11