docs: rewrite the Composer and Compute pages for how Composer 0.40 handles environment variables and versions #8960
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #8960"
general
weight: 0.35
wmadden-electric
This rewrites the Composer and Compute docs around how the current releases actually handle an app's environment variables and versions, instead of patching single sentences. Prisma Composer is the tool behind
prisma deployfor apps on Prisma Compute.The pages on
mainshow an app reading a credential like this, and say the first deploy copies the value from your shell:Neither is true any more. Composer 0.40.0 removed
envSecret(), and since Composer 0.39 a deploy never copies a value to Compute. The app now declares the variable in its top-level module, the "root", which is built withappRoot():and you set its value yourself before the deploy that needs it. With the variable exported in your shell:
A deploy that is missing the value stops and prints that command.
The two kinds of value
Everything in the rewrite follows from there being two:
variable(), orvariable.secret()for a credential): stored on Prisma Compute, read by the service when it starts..envfiles you list, by each deploy. The value is not stored as a variable on Compute, so every deploy, including in CI, must be able to read it.What a reader gets
envSecret()orenvParam()(Composer's other removed function, for non-secret values) now show the new code.prisma8.0.0-rc.27,@prisma/orm-postgres8.0.0-rc.20and Composer0.34.0. The repository setup in the Prisma Console, which prepares an app for deploy on push, refuses those. They now namerc.36,rc.25and0.40.0.prisma dev module.mjsis nowprisma dev, andprisma dev url databaseis nowprisma dev url feedback-board.database.module()now useappRoot(), so every page shows the root the same way.citext, pgvector) must pass the pack's runtime to the client, or the service fails on first use.rc.25: for example,DateTimecolumns read as aDateand@db.Datecolumns as text.The choice worth checking
The upgrade steps turn
envParam('EMAIL_FROM')into a root input field, not a platform variable, because a root input field behaves the same: each deploy reads your shell and nothing has to be created on Compute. The cost is that CI must keep supplying the value. The steps name the platform variable as the alternative, for a value you would rather store on Compute. This follows the migration guide in prisma/composer#431, which merged on 17 November.Not verified
Nothing was deployed, because that needs a real account and creates real resources. So the commands in the deploy guide, the output shown in the PostgreSQL upgrade guide and the address format for
prisma service logsrest on reading the source and Composer's docs, not on a run.Otherwise: a reviewer who did not write the pages compared every changed claim with the source of Composer
0.40.0, the ORM8.0.0-rc.25, the CLI8.0.0-rc.36and the Console's setup code; the new app examples type-check against Composer0.40.0; fresh readers reviewed the text three times and what would have blocked them is fixed (some terms, such as "deploy state", stay undefined); and the docs' link and version checks pass.Not included
envSecret(). The page is generated from prisma/prisma-cli, so it has to be fixed there. No issue is filed yet.This is the rewrite that prisma/web#8958, which corrected single out-of-date statements, left out.
Alternatives considered
envParam()into a platform variable in the upgrade steps. One concept for readers to learn, but their deploy would stop until they created on Compute a value that has never been there.<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Documentation
Updated Prisma Compute deployment guidance to explain how required platform variables are provisioned, what happens when values are missing, and how to redeploy after setting them. Clarified that deployments do not copy values from the shell or
.envfiles.Clarified how root inputs, platform variables, credentials, and service inputs are declared and used, including Composer 0.40.0 migration guidance and the reserved
DATABASE_URLname.Expanded local development, CI, and deployment documentation, including variable scopes, validation behavior, and secret provisioning.
* Updated Composer examples to use the current root-app declaration, and refreshed Prisma 8 and PostgreSQL upgrade instructions, version requirements, and date/time query notes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->