[PR #990] [MERGED] fix: remove duplicate neon pooler #1303

Closed
opened 2026-02-26 19:32:41 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/990
Author: @dguyen
Created: 3/6/2024
Status: Merged
Merged: 3/7/2024
Merged by: @dguyen

Base: mainHead: fix/neon-db


📝 Commits (5)

  • 88ffdb0 fix: remove duplicate neon pooler
  • e748b18 fix: add direct neon connection URL
  • 530508f fix: remove invalid seed
  • ffcb4fd fix: remove invalid seed
  • 3651d35 Merge branch 'main' into fix/neon-db

📊 Changes

4 files changed (+19 additions, -24 deletions)

View changed files

📝 packages/prisma/helper.ts (+4 -13)
📝 packages/prisma/seed-database.ts (+7 -1)
📝 scripts/vercel.sh (+7 -10)
📝 turbo.json (+1 -0)

📄 Description

Description

Fixes the issue with Vercel preview deployments failing.

It appears that the old PGHOST environment variable injected by neon was:

ep-snowy-snowflake-a2vc5pa2.eu-central-1.aws.neon.tech

It is now:

ep-snowy-snowflake-a2vc5pa2.eu-central-1-pooler.aws.neon.tech

Notice the -pooler being attached automatically to the PGHOST.

References

The following changes were made to the Neon Vercel Integration:

To ensure that users accessing a Neon database from a serverless environment have enough connections, the DATABASE_URL and PGHOST environment variables added to a Vercel project by the Neon integration are now set to a pooled Neon connection string by default. Pooled connections support up to 10,000 simultaneous connections. Previously, these variables were set to an unpooled connection string supporting fewer concurrent connections.

https://neon.tech/docs/changelog

https://neon.tech/docs/guides/vercel#manage-vercel-environment-variables


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/990 **Author:** [@dguyen](https://github.com/dguyen) **Created:** 3/6/2024 **Status:** ✅ Merged **Merged:** 3/7/2024 **Merged by:** [@dguyen](https://github.com/dguyen) **Base:** `main` ← **Head:** `fix/neon-db` --- ### 📝 Commits (5) - [`88ffdb0`](https://github.com/documenso/documenso/commit/88ffdb0066135d1aeae0b0ffe8ead7bbf329b84e) fix: remove duplicate neon pooler - [`e748b18`](https://github.com/documenso/documenso/commit/e748b1898e8bcdae0cfc2f6a7b07336530538ced) fix: add direct neon connection URL - [`530508f`](https://github.com/documenso/documenso/commit/530508f421d585516f83f633d1dd98fbcb2a900d) fix: remove invalid seed - [`ffcb4fd`](https://github.com/documenso/documenso/commit/ffcb4fda20d2dc7f04cb5c41d5048b5aab8aa21c) fix: remove invalid seed - [`3651d35`](https://github.com/documenso/documenso/commit/3651d3515dd018507cc87836589354b1e1ff351b) Merge branch 'main' into fix/neon-db ### 📊 Changes **4 files changed** (+19 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `packages/prisma/helper.ts` (+4 -13) 📝 `packages/prisma/seed-database.ts` (+7 -1) 📝 `scripts/vercel.sh` (+7 -10) 📝 `turbo.json` (+1 -0) </details> ### 📄 Description ## Description Fixes the issue with Vercel preview deployments failing. It appears that the old `PGHOST` environment variable injected by neon was: `ep-snowy-snowflake-a2vc5pa2.eu-central-1.aws.neon.tech` It is now: `ep-snowy-snowflake-a2vc5pa2.eu-central-1-pooler.aws.neon.tech` Notice the `-pooler` being attached automatically to the `PGHOST`. ## References > The following changes were made to the [Neon Vercel Integration](https://vercel.com/integrations/neon): > >To ensure that users accessing a Neon database from a serverless environment have enough connections, the DATABASE_URL and PGHOST environment variables added to a Vercel project by the Neon integration are now set to a pooled Neon connection string by default. Pooled connections support up to 10,000 simultaneous connections. Previously, these variables were set to an unpooled connection string supporting fewer concurrent connections. https://neon.tech/docs/changelog https://neon.tech/docs/guides/vercel#manage-vercel-environment-variables --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:32:41 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#1303
No description provided.