[PR #2540] [MERGED] feat: support optional read replicas #2378

Closed
opened 2026-02-26 20:33:37 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/2540
Author: @Mythie
Created: 2/25/2026
Status: Merged
Merged: 2/25/2026
Merged by: @Mythie

Base: mainHead: feat/prisma-read-replicas


📝 Commits (3)

  • 23b0386 feat: support optional read replicas
  • 2f5af44 fix: satisfy typescript
  • 39507af fix: failing test due to timestamp

📊 Changes

5 files changed (+38 additions, -3 deletions)

View changed files

📝 package-lock.json (+10 -0)
📝 package.json (+1 -0)
📝 packages/app-tests/e2e/webhooks/webhooks-crud.spec.ts (+3 -2)
📝 packages/prisma/index.ts (+23 -1)
📝 turbo.json (+1 -0)

📄 Description

Adds support for optional read replicas by adding the
NEXT_PRIVATE_DATABASE_REPLICA_URLS environment variable.

If no read replicas are specified then prisma will just use the
default connection.


🔄 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/2540 **Author:** [@Mythie](https://github.com/Mythie) **Created:** 2/25/2026 **Status:** ✅ Merged **Merged:** 2/25/2026 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `main` ← **Head:** `feat/prisma-read-replicas` --- ### 📝 Commits (3) - [`23b0386`](https://github.com/documenso/documenso/commit/23b0386e1fcc95a56b123e6be8a3cec5161b1d6a) feat: support optional read replicas - [`2f5af44`](https://github.com/documenso/documenso/commit/2f5af4434d18ea9cbd0d39da73fdfa97facceeca) fix: satisfy typescript - [`39507af`](https://github.com/documenso/documenso/commit/39507af45020e731602fc6e1b95868201e8c4f52) fix: failing test due to timestamp ### 📊 Changes **5 files changed** (+38 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+10 -0) 📝 `package.json` (+1 -0) 📝 `packages/app-tests/e2e/webhooks/webhooks-crud.spec.ts` (+3 -2) 📝 `packages/prisma/index.ts` (+23 -1) 📝 `turbo.json` (+1 -0) </details> ### 📄 Description Adds support for optional read replicas by adding the `NEXT_PRIVATE_DATABASE_REPLICA_URLS` environment variable. If no read replicas are specified then prisma will just use the default connection. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 20:33:37 +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#2378
No description provided.