-
Notifications
You must be signed in to change notification settings - Fork 308
[comp] Production Deploy #2771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
[comp] Production Deploy #2771
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
990438c
chore: merge release v3.44.0 back to main [skip ci]
github-actions[bot] ae20aaa
perf(app): pin Vercel SSR functions to iad1
Marfuen 1a06cec
perf(portal): pin Vercel SSR functions to iad1
Marfuen 44a7294
Merge pull request #2769 from trycompai/mariano/pin-app-ssr-iad1
Marfuen 4e8f9b1
Merge pull request #2770 from trycompai/mariano/pin-portal-ssr-iad1
Marfuen 2694ece
fix(db): inline RDS CA bundle to bypass Turbopack ignoring outputFile…
Marfuen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "$schema": "https://openapi.vercel.sh/vercel.json", | ||
| "regions": ["iad1"] | ||
| } |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "$schema": "https://openapi.vercel.sh/vercel.json", | ||
| "regions": ["iad1"] | ||
| } |
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #!/usr/bin/env node | ||
| import { readFileSync, writeFileSync } from 'node:fs'; | ||
| import { dirname, join } from 'node:path'; | ||
| import { fileURLToPath } from 'node:url'; | ||
|
|
||
| const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
| const pemPath = join(__dirname, '..', 'certs', 'rds-global-bundle.pem'); | ||
| const monorepoRoot = join(__dirname, '..', '..', '..'); | ||
|
|
||
| const pem = readFileSync(pemPath, 'utf8'); | ||
| const escaped = JSON.stringify(pem); | ||
|
|
||
| const banner = | ||
| '// Auto-generated from packages/db/certs/rds-global-bundle.pem.\n' + | ||
| '// Do not edit by hand — run `bun run packages/db/scripts/generate-ca-bundle-ts.mjs` to regenerate.\n' + | ||
| '// The cert is inlined as a string so it lands in every bundler\'s output (Webpack, Turbopack, Rollup).\n' + | ||
| '// Background: Next.js `outputFileTracingIncludes` is silently ignored under Turbopack builds, so file-based\n' + | ||
| '// approaches that rely on tracing don\'t work. See `next/dist/build/index.js` line ~1537.\n\n'; | ||
|
|
||
| const body = `export const RDS_CA_BUNDLE = ${escaped};\n`; | ||
|
|
||
| const targets = [ | ||
| join(monorepoRoot, 'packages/db/src/rds-ca-bundle.ts'), | ||
| join(monorepoRoot, 'apps/app/prisma/rds-ca-bundle.ts'), | ||
| join(monorepoRoot, 'apps/portal/prisma/rds-ca-bundle.ts'), | ||
| join(monorepoRoot, 'apps/framework-editor/prisma/rds-ca-bundle.ts'), | ||
| ]; | ||
|
|
||
| for (const target of targets) { | ||
| writeFileSync(target, banner + body); | ||
| console.log(`wrote ${target}`); | ||
| } |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.)
View Feedback
Prompt for AI agents