Skip to content

chore(chat-agent): set up dev app for Vercel deployment with Atlas pooling#126

Open
jhb-dev wants to merge 6 commits intomainfrom
claude/setup-vercel-deployment-DMobC
Open

chore(chat-agent): set up dev app for Vercel deployment with Atlas pooling#126
jhb-dev wants to merge 6 commits intomainfrom
claude/setup-vercel-deployment-DMobC

Conversation

@jhb-dev
Copy link
Copy Markdown
Contributor

@jhb-dev jhb-dev commented Apr 21, 2026

Configures the chat-agent dev app to deploy to Vercel with MongoDB Atlas and
preview deployments for PRs. Wires @vercel/functions attachDatabasePool into
the mongoose adapter so Fluid Compute can drain idle connections between
invocations, guarded by VERCEL so local tests/dev aren't affected.

claude added 6 commits April 17, 2026 19:09
…oling

Configures the chat-agent dev app to deploy to Vercel with MongoDB Atlas and
preview deployments for PRs. Wires @vercel/functions attachDatabasePool into
the mongoose adapter so Fluid Compute can drain idle connections between
invocations, guarded by VERCEL so local tests/dev aren't affected.
Use the native afterOpenConnection adapter hook (added in @payloadcms/db-mongodb
3.65.0) instead of reaching into payload.db from onInit. The typed MongooseAdapter
is passed in, so no unsafe casts.
…eployment-DMobC

# Conflicts:
#	chat-agent/dev/src/payload.config.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants