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: docs/product/command-spec.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ Out of scope for the current beta:
58
58
non-TTY stderr, and when `NO_UPDATE_NOTIFIER` is set. When shown, update
59
59
notifications are stderr-only human output and do not change the original
60
60
command result.
61
-
- Public Beta does not read or write committed config files such as `prisma.config.ts` or `.prisma/settings.json` for Project -> Branch -> App resolution. `.prisma/local.json` is a gitignored local pin/cache, not a declarative repo config file.
61
+
- Public Beta does not read or write committed config files such as `prisma.config.ts` or `.prisma/settings.json` for Project -> Branch -> App resolution. `.prisma/local.json` is a gitignored local pin/cache, not a declarative repo config file.`prisma.app.json` is only for app build settings.
62
62
- Remote commands do not silently change local context.
63
63
64
64
## Authentication
@@ -627,6 +627,11 @@ Behavior:
627
627
- writes `.prisma/local.json` after Project binding succeeds and before build/deploy starts, so retries after a failed deploy do not repeat setup
628
628
- before asking `Customize build settings? (y/N)`, previews the detected framework and runtime so the user can see the defaults they are accepting or changing
629
629
- asks `Customize build settings? (y/N)` only while binding the directory for the first time, and only asks for Framework and HTTP port when the user opts in
630
+
- for Next.js, TanStack Start, and Bun/Hono deploys, reads or creates `prisma.app.json` before build and uses it for app build settings:
631
+
-`Build Command` prefers `<package-manager> run build` when `package.json` has `scripts.build`
632
+
- otherwise `Build Command` falls back to the framework default, such as `next build`
633
+
-`Output Directory` is a literal framework output path, such as `.next/standalone`, `.output`, or `.`
634
+
- does not overwrite an existing `prisma.app.json`; edit the file or delete it and rerun deploy to regenerate defaults
630
635
- after setup, deploy prints `Deploying to <Project> / <Branch> / <App>`; later deploys print a compact target header such as `Deploying ./j1 to j1 / main / j1`
631
636
- deploy progress uses short stage copy (`Building locally...`, `Built <size>`, `Uploading...`, `Uploaded`, `Deploying...`, `Deployed`) and never prints `Status: running` or `Deployment is running at ...`
632
637
- success human output prints `Live in <duration>`, the URL on its own line, and `Logs prisma-cli app logs`
@@ -647,11 +652,12 @@ Behavior:
647
652
- if schema setup fails, deploy stops before the app build/deploy starts
648
653
-`--env DATABASE_URL=...`, `--env DIRECT_URL=...`, or the same keys loaded from an env file suppress automatic database prompting; combining those database env vars with `--db` is rejected
649
654
- maps user-facing framework names to deploy build strategies
655
+
- does not accept `--build-command` or `--output-directory`; custom build settings are edited in `prisma.app.json`, which is initially generated from `package.json``scripts.build` and framework defaults for config-backed deploy types
650
656
- uses `src/index.ts` as the Hono deploy entrypoint when the app has no `package.json#main` or `package.json#module` and that file exists
651
657
- supports vanilla Bun apps with `--framework bun` using `package.json#main` or `package.json#module`, or with `--entry <path>`
652
658
- treats `--entry <path>` without `--framework` as a Bun app deploy
653
659
- does not print secret values
654
-
- returns app, deployment id, URL, and next steps in `--json` output
660
+
- returns app, deployment id, URL, deploy settings including `prisma.app.json` status/build/output metadata, and next steps in `--json` output
Copy file name to clipboardExpand all lines: docs/product/error-conventions.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,7 @@ These codes are the minimum stable set for the MVP:
169
169
-`LOCAL_PROJECT_WORKSPACE_MISMATCH`
170
170
-`LOCAL_STATE_STALE`
171
171
-`BRANCH_NOT_DEPLOYABLE`
172
+
-`APP_CONFIG_INVALID`
172
173
-`FRAMEWORK_NOT_DETECTED`
173
174
-`DEPLOYMENT_NOT_FOUND`
174
175
-`NO_DEPLOYMENTS`
@@ -214,6 +215,7 @@ Recommended meanings:
214
215
-`LOCAL_PROJECT_WORKSPACE_MISMATCH`: local Project pin points at a different workspace than the active authenticated workspace; callers should sign in to the linked workspace or relink the directory
215
216
-`LOCAL_STATE_STALE`: local Project pin no longer matches platform data and continuing would be ambiguous
216
217
-`BRANCH_NOT_DEPLOYABLE`: command tried to deploy to a non-deployable branch context
218
+
-`APP_CONFIG_INVALID`: `prisma.app.json` is missing required build settings, has invalid JSON, or points outside the app root
217
219
-`FRAMEWORK_NOT_DETECTED`: app deploy could not detect a supported Beta framework and no explicit framework/build type was provided
218
220
-`DEPLOYMENT_NOT_FOUND`: requested deployment id does not exist
219
221
-`NO_DEPLOYMENTS`: command resolved a branch or app but found no deployments
Copy file name to clipboardExpand all lines: docs/product/output-conventions.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -314,6 +314,7 @@ Examples:
314
314
-`app deploy` should state the resolved target that matters in the current slice
315
315
- first local `app deploy` binding should make the Project choice explicit before work begins
316
316
- subsequent `app deploy` calls should use a compact target header such as `Deploying ./j1 to j1 / main / j1`
317
+
- config-backed `app deploy` builds should show whether they created or used `prisma.app.json` before build starts: `Build Command` with its source when inferred, and `Output Directory` as a literal path such as `.next/standalone` rather than an opaque framework default label
317
318
-`app logs` should state the deployment it resolved
318
319
-`app list-deploys` should state which app or branch is being listed
0 commit comments