# How to connect Neon Postgres as a database backend for Webflow Cloud

DevFeed: [How to connect Neon Postgres as a database backend for Webflow Cloud](<https://devfeed.tech/articles/how-to-connect-neon-postgres-as-a-database-backend-for-webflow-cloud-109613.md>)

Original publisher: [Read original article](<https://www.webflow.com/blog/neon-postgres-webflow-cloud>)

Author: Ismail Ajagbe

Published: 2026-09-12T00:00:00Z

Content type: tutorial

Language: en

Sources: [Webflow Blog](<https://devfeed.tech/sources/webflow-blog.md>)

Topics: [webflow](<https://devfeed.tech/topics/webflow.md>), [Database](<https://devfeed.tech/topics/database.md>), [rdbms](<https://devfeed.tech/topics/rdbms.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [Database Migration](<https://devfeed.tech/topics/database-migration.md>), [Prisma](<https://devfeed.tech/topics/prisma.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [database](<https://devfeed.tech/tags/database.md>), [guides](<https://devfeed.tech/tags/guides.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [neon](<https://devfeed.tech/tags/neon.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [webflow](<https://devfeed.tech/tags/webflow.md>)

## AI overview

For Webflow Cloud's stateless Workers runtime, the guide recommends Neon's `@neondatabase/serverless` HTTP `neon()` function with a pooled connection string for ordinary queries. Set up a Next.js project with Node.js 22+, npm, and the Webflow CLI; store `DATABASE_URL` locally and in Webflow Cloud's Settings -> Variables, then query from server components or route handlers using parameterized tagged templates. The guide distinguishes this from `pg`, which needs TCP sockets unavailable in Workers; Hyperdrive plus `pg` is an alternative when adding that proxy is acceptable. Use a direct connection string for local schema migrations, not serverless application queries. HTTP transactions support batched, non-interactive work; interactive transactions require WebSocket `Pool`/`Client` connections created and closed within one handler. Pooling helps avoid connection-slot exhaustion but does not prevent Neon scale-to-zero cold starts; region co-location, retries, caching, or disabling auto-suspend are cited mitigations.

## Source excerpt

Learn how to set up Neon Postgres as a database backend for Webflow Cloud.