Deployment
Source:
src/Prisma/Deployment.ts
A Prisma deployment owned by an App.
Prisma’s create-deployment API currently exposes neither an idempotency key nor a caller-defined natural key. After a crash that loses state immediately after creation, Alchemy deliberately does not adopt the App’s latest deployment: doing so could take ownership of an unrelated deployment. When persisted state contains a Foundry version ID, refresh may safely recover the matching deployment.
Creating a Deployment
Section titled “Creating a Deployment”Fork the latest uploaded artifact
const deployment = yield* Prisma.Deployment("web-v2", { app: app.appId, skipCodeUpload: true, start: true, promote: true,});Upload a prebuilt artifact
const deployment = yield* Prisma.Deployment("web-v3", { app: app.appId, artifactPath: "./dist/app.tar.gz", artifactContentType: "application/gzip", start: true, promote: true,});