Prisma Next is in early access.Read the docs

Prisma Compute

Deploy TypeScript apps alongside Prisma Postgres, with hosting, database branches, and previews managed together.

Prisma Compute is TypeScript app hosting built to run alongside Prisma Postgres. You model your data with Prisma ORM, store it in Prisma Postgres, and deploy your app with Prisma Compute, so your schema, database, hosting, and branch previews work together in one Prisma project.

Get started

The best way to understand Compute is to deploy an app. The quickstart takes a TypeScript app to a live URL in a few minutes, then connects GitHub so every push can deploy automatically.

To learn how Compute works, the model below shows how each branch gets isolated app and database resources, so preview work never touches production.

The model

Compute organizes everything into a few resources:

  • A project groups one product or codebase.
  • A branch maps to a Git branch in the linked repository, and gets its own isolated app, environment variables, and deployments.
  • An app is an HTTP service, such as a frontend or backend, and can have multiple deployments.

The branch is the concept that ties Compute together. Each branch owns its own app, URL, and environment variables, and can have its own database. When you deploy to a new branch, Compute provisions isolated resources for that branch, so you can test changes in preview without affecting production.

  • Production: the default Git branch (e.g., main) is your production branch, with its own resources and environment variables.
  • Preview: every other branch is a preview branch, with its own isolated resources and environment variables scoped to preview.

After you connect a GitHub repository, pushing to a Git branch builds and deploys its preview automatically.

The animation below shows how a project, its branches, and their infrastructure fit together, and how each branch's variables resolve by scope. Step through it, or let it play:

How Compute organizes resources and isolates branchesStep 1 of 3
BranchInfrastructureProjectmy-appmaindefault · productionfeature/new-featurepreviewbug/fix-issuepreviewVariables · productionAppDBVariables · previewAppDBVariables · previewAppDB
Your first deploy creates the project, its default production branch, and the infrastructure that runs it: an app, a database, and its production-scoped variables.

For the full picture, see Branching.

CLI and Console

Use the CLI for anything you want to repeat: local development, CI, and agent workflows. Every command supports a --json flag that switches its output to machine-readable JSON, so scripts and agents can parse results instead of scraping terminal text.

Use the Console if you prefer to view your resources instead of running a command. The Console shows your projects, branches, apps, and deployments in a visual way, and lets you manage them with buttons instead of commands.

On this page