Cloudflare Edge Functions + MongoDB Atlas TCP
Next.js on Cloudflare Pages with MongoDB Atlas
Deployed via GitHub using Cloudflare Functions edge runtime with nodejs_compat. Fast, serverless, and production-ready.
MongoDB Atlas
Database:next_cloud_db
Cluster Host:mosabber.8onjvem
Ping Latency:--
Auth:Configured (Env)
Cloudflare Pages
Runtime:Edge / V8 Isolate
Flag:nodejs_compat
Build Command:npx next build
Output Dir:out
Tip: Set
nodejs_compat in Cloudflare dashboard project settings.Active API Endpoints
Host Domain:next-cloud-mongodb.pages.dev
DB Ping Route:/api/db-check
Items CRUD:/api/items
API Status:Connecting...
Add Document to MongoDB
Insert live records into the items collection in your MongoDB Atlas database.
Live MongoDB Documents (0)
No documents in
items collection yet.Use the form on the left to add your first record!