You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/docs/(index)/prisma-compute/deploy.mdx
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,7 +156,7 @@ Make sure your project directory is a Git repository with a GitHub remote, then
156
156
npx @prisma/cli@latest git connect
157
157
```
158
158
159
-
`git connect` wires up the project this directory is linked to, which exists once you have deployed at least once. For monorepos and CI, see the [GitHub integration docs](/compute/github).
159
+
`git connect` wires up the project this directory is linked to, which exists once you have deployed at least once. For a repository with several apps, see [Deploy a monorepo](/compute/monorepos). For integration details, see the [GitHub docs](/compute/github).
160
160
161
161
## Hand it to your agent
162
162
@@ -185,5 +185,6 @@ Notes for your agent:
185
185
-[Branching](/compute/branching): how preview branches isolate work and map to your Git branches.
186
186
-[Add environment variables](/compute/environment-variables) for configuration, secrets, and your database connection string.
187
187
-[Deployments](/compute/deployments): promote, roll back, and inspect what you ship.
188
-
-[GitHub integration](/compute/github): the full picture on deploy-on-push, monorepos, and cleanup.
188
+
-[Deploy a monorepo](/compute/monorepos): configure, verify, and deploy several apps from one repository.
189
+
-[GitHub integration](/compute/github): the full picture on deploy-on-push and cleanup.
189
190
-[Read the full CLI getting-started guide](/compute/getting-started) for frameworks, project linking, and CI.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/compute/cli-reference.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ Manage apps and deployments for a project.
61
61
|`app rollback`| Roll back production to the previous deployment, without rebuilding |
62
62
|`app remove`| Remove the app from the current branch |
63
63
64
-
Promote and rollback switch the live endpoint between existing deployments; nothing is rebuilt, and env vars stay as resolved when each deployment was created. Most `app` commands also accept an optional `[app]` positional argument to pick a target from `prisma.compute.ts` when the config defines multiple apps.
64
+
Promote and rollback switch the live endpoint between existing deployments; nothing is rebuilt, and env vars stay as resolved when each deployment was created. Most `app` commands also accept an optional `[app]` positional argument to pick a target from `prisma.compute.ts` when the config defines multiple apps. See [Deploy a monorepo](/compute/monorepos) for target setup and workflows.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/compute/configuration.mdx
+3-43Lines changed: 3 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ metaDescription: "Reference for the prisma.compute.ts file: declare your app's f
9
9
`prisma.compute.ts` is an optional, committed file that declares what you deploy. [`app deploy`](/compute/cli-reference#app) already works with zero config (it detects your framework and builds), so reach for a config file when you want one of these:
10
10
11
11
-**Reproducible deploys.** Pin the framework, port, and build settings so every deploy (yours, a teammate's, or [deploy-on-push](/compute/github)) does the same thing without re-passing flags.
12
-
-**A monorepo.** Declare several apps in one repository and deploy them together, or one at a time.
12
+
-**A monorepo.**[Declare several apps](/compute/monorepos) in one repository and deploy them together, or one at a time.
13
13
-**Type safety.** Catch a typo'd field or an invalid framework in your editor, before you deploy.
14
14
15
15
The file is read by `app deploy` and `app build`. It never selects your project, branch, or production; those stay explicit. It also does not configure a database; that stays on the [`--db` flag](/compute/cli-reference#app-deploy-options).
@@ -143,47 +143,7 @@ The config file's directory is treated as the project directory: the [`.prisma/l
143
143
144
144
## Monorepos
145
145
146
-
Use `apps` instead of `app` to declare several apps in one repository, keyed by a target name. For an end-to-end setup with local builds, single-app deploys, deploy-all, and GitHub automation, see [Deploy a monorepo](/compute/monorepos).
All the apps live in one project, deploying to the same branch. From here:
167
-
168
-
-**Deploy everything** with a bare `app deploy`, which deploys every app in order. This is the default when no target is named or inferred:
169
-
170
-
```npm
171
-
npx @prisma/cli@latest app deploy
172
-
```
173
-
174
-
-**Deploy one app** by naming its target, or by running from inside its `root` (the deepest matching root wins):
175
-
176
-
```npm
177
-
npx @prisma/cli@latest app deploy api
178
-
```
179
-
180
-
```npm
181
-
cd apps/api && npx @prisma/cli@latest app deploy
182
-
```
183
-
184
-
When you deploy everything at once, per-app flags like `--framework` or `--entry` are rejected as ambiguous. Pass a target to apply them to one app. Project- and branch-level flags (`--branch`, `--db`, `--prod`, `--yes`) apply to the whole run.
185
-
186
-
`app build` always targets a single app in a multi-app config. Unlike `deploy`, it has no all-apps form, so pass a target or run from inside the app's `root`.
146
+
Use `apps` instead of `app` to declare several apps in one repository. Each map key is a CLI target, and every target accepts the same fields listed above. See [Deploy a monorepo](/compute/monorepos) for the complete config, directory layout, target selection, local builds, deploy-all behavior, and GitHub automation.
187
147
188
148
## How config and flags interact
189
149
@@ -203,4 +163,4 @@ A config that fails to load or validate stops the deploy before any remote work,
203
163
-[CLI reference](/compute/cli-reference): every command, flag, and error code.
204
164
-[Deploy your first app](/prisma-compute/deploy): the end-to-end quickstart.
205
165
-[Environment variables](/compute/environment-variables): scoped configuration, secrets, and your database connection string.
206
-
-[GitHub integration](/compute/github): deploy-on-push, including monorepos.
166
+
-[GitHub integration](/compute/github): deploy-on-push and branch previews.
Passing every target explicitly keeps the run self-contained; `--json` makes the result parseable, and `--no-interactive` turns any would-be prompt into a structured error.
71
+
Passing every selector explicitly keeps the run self-contained; `--json` makes the result parseable, and `--no-interactive` turns any would-be prompt into a structured error. For multiple config targets in one repository, follow [Deploy a monorepo](/compute/monorepos).
72
72
73
73
## Why did my production deploy fail with `PROD_DEPLOY_REQUIRES_FLAG`?
Copy file name to clipboardExpand all lines: apps/docs/content/docs/compute/github.mdx
+2-12Lines changed: 2 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,19 +56,9 @@ Once a project is connected:
56
56
57
57
Connecting doesn't deploy anything on its own; it wires up automation for *future* events. To deploy right now, run `app deploy` yourself.
58
58
59
-
## CI and monorepos
59
+
## Monorepos
60
60
61
-
Auto-deploy handles [monorepos that declare their apps in `prisma.compute.ts`](/compute/monorepos): one pushed commit fans out into a targeted build per app. For custom pipelines, or anywhere you want full control, set `PRISMA_SERVICE_TOKEN` and `PRISMA_PROJECT_ID`, then name the config target positionally:
62
-
63
-
```bash title="CI"
64
-
PRISMA_SERVICE_TOKEN=... PRISMA_PROJECT_ID=... \
65
-
npx @prisma/cli@latest app deploy web \
66
-
--branch "${GITHUB_HEAD_REF:-$GITHUB_REF_NAME}" \
67
-
--json \
68
-
--no-interactive
69
-
```
70
-
71
-
This keeps deploys deterministic and gives agents a structured result to read.
61
+
A connected repository can deploy several Compute apps from each push. See [Deploy a monorepo](/compute/monorepos) for the root `prisma.compute.ts` config, build fan-out, target selection, and custom CI commands.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/compute/limitations.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ Prisma Compute is in [Public Beta](/console/more/feature-maturity#public-beta).
38
38
## GitHub
39
39
40
40
- GitHub is the only supported provider, and a project connects to one repository.
41
-
- Auto-deploy supports multiple apps declared in `prisma.compute.ts`: one push build fans out into a targeted build per app. CI with a service token remains available when you need full control.
41
+
- Auto-deploy supports [multiple apps declared in a monorepo config](/compute/monorepos).
42
42
- The webhook path is branch- and push-driven. There are no PR comments or PR status automation.
0 commit comments