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.
Creating a Static Website
Section titled “Creating a Static Website”const site = yield* Prisma.Website.StaticSite("Blog", { command: "hugo --minify", outdir: "public",});Monorepos and Development
Section titled “Monorepos and Development”const site = yield* Prisma.Website.StaticSite("Web", { cwd: "apps/web", command: "npm run build", outdir: "dist", spa: true, dev: { command: "npm run dev" },});