Conversation
Co-locates Next.js serverless functions with the us-east-1 database to eliminate cross-Atlantic queries during render. SSR was previously running in lhr1; every DB call inside a server component incurred ~90ms RTT to us-east-1, compounding across the 5+ sequential queries on pages like /[orgId]/overview. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-locates Next.js serverless functions with the us-east-1 database to eliminate cross-Atlantic queries during render. Mirrors the change in apps/app — the Vercel project default had drifted to lhr1, causing SSR DB calls to cross the Atlantic on every render. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
perf(app): pin Vercel SSR functions to iad1
perf(portal): pin Vercel SSR functions to iad1
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…TracingIncludes fix(db): inline RDS CA bundle to bypass Turbopack ignoring outputFileTracingIncludes
Contributor
There was a problem hiding this comment.
1 issue found across 13 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/framework-editor/prisma/client.ts">
<violation number="1" location="apps/framework-editor/prisma/client.ts:4">
P3: Avoid editing generated prisma client artifacts directly. Apply this TLS change in the canonical source (packages/db/src/client.ts) and regenerate the app client so the change persists.
(Based on your team's feedback about treating apps/*/prisma client files as generated artifacts.) [FEEDBACK_USED]</violation>
</file>
Tip: cubic used a learning from your PR history. Let your coding agent read cubic learnings directly with the cubic MCP.
Fix all with cubic.
| import { PrismaClient } from '@prisma/client'; | ||
| import { PrismaPg } from '@prisma/adapter-pg'; | ||
|
|
||
| import { RDS_CA_BUNDLE } from './rds-ca-bundle'; |
Contributor
There was a problem hiding this comment.
P3: Avoid editing generated prisma client artifacts directly. Apply this TLS change in the canonical source (packages/db/src/client.ts) and regenerate the app client so the change persists.
(Based on your team's feedback about treating apps/*/prisma client files as generated artifacts.)
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/framework-editor/prisma/client.ts, line 4:
<comment>Avoid editing generated prisma client artifacts directly. Apply this TLS change in the canonical source (packages/db/src/client.ts) and regenerate the app client so the change persists.
(Based on your team's feedback about treating apps/*/prisma client files as generated artifacts.) </comment>
<file context>
@@ -1,6 +1,8 @@
import { PrismaClient } from '@prisma/client';
import { PrismaPg } from '@prisma/adapter-pg';
+import { RDS_CA_BUNDLE } from './rds-ca-bundle';
+
const globalForPrisma = global as unknown as { prisma?: PrismaClient };
</file context>
Contributor
|
🎉 This PR is included in version 3.44.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.
Summary by cubic
Pin SSR functions to Vercel region
iad1forapps/appandapps/portalto co‑locate with our us‑east‑1 database and speed up SSR renders. Inline the AWS RDS CA bundle asRDS_CA_BUNDLEacross apps and@trycompai/dbto guarantee verified TLS under Turbopack, removingoutputFileTracingIncludesand the need forNODE_EXTRA_CA_CERTS.Written for commit 2694ece. Summary will update on new commits.