feat: add prisma.compute.json configs and templates manifest to Compute examples#8562
Open
AmanVarshney01 wants to merge 1 commit into
Open
feat: add prisma.compute.json configs and templates manifest to Compute examples#8562AmanVarshney01 wants to merge 1 commit into
AmanVarshney01 wants to merge 1 commit into
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
WalkthroughPrisma Compute configurations and template metadata were added for Hono, Next.js, and TanStack Start. Their build scripts now run ChangesPrisma Compute platform templates
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Comment |
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.
Summary
Makes the three Prisma Compute examples (
deployment-platforms/prisma-compute/{hono,nextjs,tanstack-start}) usable as click-to-deploy template sources for the Console gallery, in their current location.prisma.compute.jsonto each example (name, framework, andhttpPort: 8080for hono which readsPORT ?? 8080). A repo/folder carrying this config connects and deploys through the platform import flow with no inference. All three configs validated against the compute SDK'sloadComputeConfig.templates.json, the manifest a gallery consumer reads (id, name, description, repo-root-relative path, framework).prisma generateto each example'sbuildscript: the generated client is gitignored, so a fresh copy of these folders previously could not build without the reader knowing to rundb:generatefirst. Verified all three build from a clean generate.The documented CLI flow (
compute:deployscripts) is unchanged; the--env .envflag still applies on top of the config.Testing
loadComputeConfigfrom@prisma/compute-sdksource resolves all three configs (hono: frameworkhono, port 8080; others: framework defaults)bun run buildsucceeds from a clean generated-client state in all three examples withDATABASE_URLsetSummary by CodeRabbit
New Features
Bug Fixes