prisma-compute

Deploy and manage TypeScript applications on Prisma Compute using the Prisma Platform CLI.

Updated Jul 21, 2026
One-click install
npx skills add https://github.com/8ReTid8/vitural_reality_test --skill prisma-compute-8retid8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-compute
Source: https://github.com/8ReTid8/vitural_reality_test/tree/main/my-app/.windsurf/skills/prisma-compute
Command: npx skills add https://github.com/8ReTid8/vitural_reality_test --skill prisma-compute-8retid8

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @prisma/cli, @prisma/compute-sdk, @prisma/management-api-sdk, create-prisma, and includes references (resource) components.

What problem does it solve? Deploying TypeScript apps to Prisma Compute involves many failure points: wrong CLI commands, missing auth workspaces, loopback-only host binding, port mismatches, and misconfigured prisma.compute.ts files. This Skill guides agents through the correct deploy, config, and troubleshooting workflow so apps actually become reachable in production. ## Core Features & Use Cases - Deployment Guidance: Covers @prisma/cli app deploy, generated compute:deploy scripts, preview branch deploys, --no-promote candidate builds, and production promotion. - Typed Compute Config: Explains prisma.compute.ts with defineComputeConfig, single-app vs monorepo apps targets, flag precedence, and init-generated configs. - Framework Readiness: Details deploy requirements for Next.js, Nuxt, Astro, Hono, NestJS, TanStack Start, Bun, Elysia, and custom prebuilt artifacts, including host/port binding rules. - Use Case: A developer's Hono API deploys successfully but the public URL times out. The Skill diagnoses the hard-coded localhost binding, fixes it to 0.0.0.0 with the correct --http-port, and verifies the public deployment URL. ## Quick Start Ask the agent to deploy your existing app to Prisma Compute, for example: deploy this Hono app to Prisma Compute on port 8080 and verify the public URL.

Frequently Asked Questions about prisma-compute

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy an existing app to Prisma Compute?

Use the generated `compute:deploy` script if the project has one, otherwise run `bunx @prisma/cli@latest app deploy` with flags like `--framework`, `--http-port`, and `--env`. Add `--json --no-interactive` for scripted deploys and `--prod --yes` only for intentional production deploys.

What is prisma.compute.ts and when do I need it?

prisma.compute.ts is a typed config using `defineComputeConfig` that stores reusable deploy defaults like framework, entry, httpPort, and env. It is optional for simple single apps but recommended for monorepos, where an `apps` map defines multiple deploy targets with separate roots.

Which frameworks does Prisma Compute deploy support?

The CLI deploy supports nextjs, nuxt, astro, hono, nestjs, tanstack-start, custom, and bun framework keys. SvelteKit has no dedicated key and must deploy through a custom prebuilt artifact or a Bun server entrypoint.

Why is my deployed app unreachable even though the deploy succeeded?

The most common cause is binding the server to localhost or 127.0.0.1 instead of 0.0.0.0, since Compute readiness only checks the listening port. Also verify the app listens on the deployed HTTP port via process.env.PORT or a matching --http-port flag.

Does Prisma Compute run database migrations during deploy?

No. Deploys never run migrations, seed data, or schema push, and prisma.compute.ts does not declare databases. Create databases with `database create`, set env vars with project env commands, and run your app's own migration scripts separately.

How do I authenticate Prisma CLI deploys in CI?

Set a non-empty PRISMA_SERVICE_TOKEN environment variable, which takes precedence over stored OAuth workspaces. Verify with `auth whoami` and never print the token; an empty token causes the CLI to fail rather than fall back to browser login.