Skip to content

Commit b18090d

Browse files
chore(prisma-compute): deduplicate restated guidance
1 parent 0610d88 commit b18090d

3 files changed

Lines changed: 3 additions & 10 deletions

File tree

prisma-compute/SKILL.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Use this skill for:
162162
- `deploy-json-for-agents` - Use `--json --no-interactive` for scripts and agent-readable output.
163163
- `deploy-create-project` - Use `--create-project <name>` only when the user wants deploy to create and link a new project; it conflicts with `--project` and `PRISMA_PROJECT_ID`.
164164
- `deploy-ops-targets` - App show/open/logs/list-deploys/promote/rollback/remove and domain commands can also accept `[app]` targets from `prisma.compute.ts`.
165-
- `deploy-report-cli-bugs` - When a `@prisma/cli` command crashes (`UNEXPECTED_ERROR`) or fails in a way you cannot resolve, report it with `bunx @prisma/cli@latest feedback "<command>: <error summary>"`. Crash envelopes in `--json` include the exact pre-filled command in `nextActions`; run it as-is. Reports are anonymous and carry only the message plus CLI, node, and OS versions; never include secrets, URLs with credentials, or user data in the message.
165+
- `deploy-report-cli-bugs` - On `UNEXPECTED_ERROR` or an unresolvable failure, report it with the feedback command; see "Send Feedback and Report CLI Issues" above.
166166

167167
### 8. SDK and API
168168

@@ -188,9 +188,5 @@ Use this skill for:
188188
- Do not bury Compute deployment guidance in the generic `prisma-cli` skill.
189189
- Do not run `create-prisma` inside an existing app just to deploy it; use the generated `compute:deploy` script or `@prisma/cli app deploy`.
190190
- Do not tell users that every `create-prisma` template can auto-deploy.
191-
- Do not put Compute deploy defaults in `prisma.config.ts`; use `prisma.compute.ts`.
192191
- Do not deploy with placeholder `DATABASE_URL` values.
193192
- Do not assume `next start` is the Compute runtime path; Next.js deploys need standalone output.
194-
- Do not expose secret values from `.env`, CLI output, Management API responses, or logs.
195-
- Do not assume a stored OAuth login means the desired workspace is active; inspect or switch it explicitly.
196-
- Do not auto-switch to another cached workspace after logout or auth refresh failure.

prisma-compute/references/frameworks.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ Project expectations:
161161
- `src/main.ts` or the compiled runtime must start an HTTP server
162162
- read `process.env.PORT` and default to the same port used by `--http-port`
163163
- omit the host argument in `app.listen(port)` or pass `"0.0.0.0"`; do not pass `"localhost"` or `"127.0.0.1"`
164-
- a `build` block is optional for NestJS; the framework strategy supplies the build/output defaults, and a committed `build` block overrides them
165164
- use `app build --build-type nestjs` for a Compute artifact check; `app run --build-type nestjs` is not supported, so use the Nest dev server locally
166165

167166
Example runtime shape:
@@ -234,7 +233,7 @@ export default defineComputeConfig({
234233
});
235234
```
236235

237-
Nuxt uses Nitro output at `.output/server/index.mjs`. Keep the Nitro preset compatible with a Node server runtime. A `build` block is optional for Nuxt: the framework strategy supplies the build command and output, and a committed `build` block overrides them.
236+
Nuxt uses Nitro output at `.output/server/index.mjs`. Keep the Nitro preset compatible with a Node server runtime.
238237

239238
## Astro
240239

@@ -269,8 +268,6 @@ export default defineConfig({
269268
})
270269
```
271270

272-
A `build` block is optional for Astro: the framework strategy supplies the build command and output, and a committed `build` block overrides them.
273-
274271
## Bun, Elysia, and Plain Source Servers
275272

276273
Use the Bun deploy key for app shapes without a dedicated `--framework` value:

prisma-compute/references/troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,4 +432,4 @@ When a CLI failure survives the checks above, or a command crashes with `UNEXPEC
432432
bunx @prisma/cli@latest feedback "app deploy crashed: <first error line>"
433433
```
434434

435-
Crash output points here on its own: human mode prints a `Tell us what happened:` hint, and `--json` crash envelopes carry the exact pre-filled command as a `recover` entry in `nextActions`; prefer running that command verbatim. Feedback is anonymous and attaches only the CLI version, node version, and OS platform/arch. Do not put secrets, connection URLs, or tokens in the message.
435+
Prefer the pre-filled command from a `--json` crash envelope's `nextActions` verbatim. Anonymous; never put secrets, connection URLs, or tokens in the message.

0 commit comments

Comments
 (0)