Next.js × MongoDBCloudflare Pages Edge Architecture
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

Disconnected
Database:next_cloud_db
Cluster Host:mosabber.8onjvem
Ping Latency:--
Auth:Configured (Env)

Cloudflare Pages

Functions
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

Live Routes
Host Domain:next-cloud-mongodb.pages.dev
DB Ping Route:/api/db-check
Items CRUD:/api/items
API Status:Connecting...

Active API URL

https://next-cloud-mongodb.pages.dev/api/db-check

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!