Skip to content

StaticSite

Source: src/Prisma/Website/StaticSite.ts

Build a static website with a shell command and serve it on Prisma Compute. Only the output directory is packaged; the repository is never uploaded. Native development declares no Prisma Project, Compute, or custom domain. Alchemy.remote() opts into the live deployment during development.

const site = yield* Prisma.Website.StaticSite("Blog", {
command: "hugo --minify",
outdir: "public",
});
const site = yield* Prisma.Website.StaticSite("Web", {
cwd: "apps/web",
command: "npm run build",
outdir: "dist",
spa: true,
dev: { command: "npm run dev" },
});