Skip to content

App

Source: src/Prisma/App.ts

A Prisma App, the long-lived application configuration that owns deployments.

Omit branchId and branchGitName to attach the App to the project’s current default branch. App regions are immutable; create a second App and cut traffic over when moving regions. Use Prisma.Compute for the usual build, deployment, health-check, and promotion workflow; use App directly when managing standalone Prisma.Deployment resources.

App on the default branch

const app = yield* Prisma.App("web", {
project,
});

App on a preview branch

const app = yield* Prisma.App("preview-web", {
project,
branchId: preview.branchId,
});