Vite
Source:
src/Prisma/Website/Vite.ts
Static Vite assets served on Prisma Compute. The project’s Vite plugins and configuration drive the build; native Vite HMR runs during development.
Native framework development and HMR run without Prisma cloud resources.
Apply Alchemy.remote() to use the live Compute deployment during dev.
Packaging requires the optional @vercel/nft peer dependency.
Creating a Website
Section titled “Creating a Website”const site = yield* Prisma.Website.Vite("Web", { rootDir: "./app",});Deployment Configuration
Section titled “Deployment Configuration”const site = yield* Prisma.Website.Vite("Web", { project, domain: "www.example.com", env: { API_BASE: "https://api.example.com" }, compute: { destroyOldDeployment: true },});