v5 was created by restoring v3
I'll remove MongoDB from the project completely. Here are the changes:
I've completely removed MongoDB from the Local Farmer Marketplace project. Here's what I did:
lib/mongodb.ts which contained the MongoDB client setupapp/api/chat/route.tsThe application now works without any MongoDB dependencies. The chat functionality remains intact but operates entirely in-memory without database storage. This means chat history will be lost when the user refreshes the page or closes the browser, but the core functionality of getting AI-powered farming assistance is still available.
If you want to add persistent storage in the future without using MongoDB, you could consider alternatives like:
An error occurred during deployment. Please fix:
MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
> Build error occurred
[Error: Failed to collect page data for /api/chat] { type: 'Error' }
error: script "build" exited with code 1
Error: Command "bun run build" exited with 1