docs: run Composer's dev and deploy for 0.35, with the entry in prisma.config.ts and full dev url addresses #8649
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.73) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.73 · 584 lines diff across 7 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.381
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.073
Real PR Conversation Timeline
1 comments
"Review active on #8649"
general
weight: 0.35
wmadden
At a glance
With
prisma8.0.0-rc.28 and Composer 0.35.0, the command every Composer page shows fails:After this PR the pages name the entry once, in
prisma.config.ts, and run the commands without it:The next step on the page fails too, because
dev urlnow wants the node's full address:What this PR changes
1. Every
prisma devandprisma deploycommand in the docs and the answers pages dropsmodule.ts.2. Every
composer({ ... })block in the docs setsentry: './module.ts'.3. The
devanddeployCLI reference pages describeentryin the config and list the new--entry <path>flag.4. Prose that said the entry file is passed to the command now says it is named in the
composersection.5. Every
dev urlcommand, and every sample ofdev,dev urlandemulator listoutput, uses the address that starts with the app's name.The entry moves into the config
The entry is the module whose default export is the app, usually
module.ts. Up to Composer 0.34.0,devanddeploytook it as a positional argument, and thecomposersection ofprisma.config.tsaccepted onlyextensionsandstate. Composer 0.35.0 removed the positional argument. The CLI now reads the entry fromentryin thecomposersection, or from--entry <path>, and fails with "No entry module is set" when neither is there. There is no default file name, so every config block on these pages needs the field.The programmatic
deploy({ entry: 'module.ts' })on thedeployreference page is unchanged. The control API still takesentryas an input that overrides the config.Node addresses start with the app name
A node is one service, database or bucket in the app, and
dev url <address>prints where it answers locally. Up to 0.34.0 the address was the node's name inside the app, such asgatewayorcatalog.database. In 0.35.0 it is the path from the app's name, such asmy-app.gatewayormy-app.catalog.database.dev's startup lines andemulator listprint the same addresses. Each page uses the app name its ownmodule(...)declares. The local database page starts from a scaffold named after the reader's directory, so it usesmy-app.databaseand says to replacemy-app.I checked this on a fresh scaffold with prisma 8.0.0-rc.28:
prisma dev --detachcame up,prisma dev url appfailed withDEV.ADDRESS_UNKNOWN,prisma dev url <app>.appprinted the URL, and the app answered 200.Not in this PR
create-prisma. 0.14.5 still pins Composer 0.34.0 and scaffoldsprisma.config.tswithoutentry, withcomposer:devandcomposer:deployscripts that passmodule.ts. The scaffold-based pages here (framework guides, the full-stack tutorial, thecreate-prismapage) describe the scaffold after it moves to 0.35.0. A separatecreate-prismaPR makes that change.cli/error-reference.mdxis generated fromdocs/reference/error-reference.mdin prisma/prisma-cli, which still saysprisma dev <entry>in three places and the old address form. It needs fixing there and regenerating.package.jsonpins Composer 0.30 and keepsprisma dev module.ts, which works at that version.Checks
lint:links,lint:agent-readyand cspell on the changed files pass.lint:codeandlint:versionsreport the same violations asmain, none in lines this PR changes.Found by the nightly getting-started check (prisma/getting-started-eval), which runs the Composer getting-started page's commands. It has failed at
npx prisma dev module.tssince rc.28.Alternatives considered
--entry module.tson every command instead ofentryin the config. It works, but it repeats the file name on every command, and the CLI's own examples use the config field and keep--entryfor overrides.create-prismarelease before changing the scaffold-based pages. The docs describe the latest versions. Holding back those pages would leave them inconsistent with the Composer pages in the meantime.Agent: janeway-45