1# vinext on Prisma
2
3Deploy a vinext App Router application with `Prisma.Website.Vinext`.
4Alchemy builds Vinext programmatically, injects its cache adapter, and runs
5vinext's Node server on Prisma Compute's Bun runtime. Deployment configuration
6stays on `Website.Vinext`; no Alchemy Vite plugin, Dockerfile, or registry is needed.
7
8```typescript
9const site = yield* Prisma.Website.Vinext("Web", {
10 env: { GREETING: "Hello from vinext on Prisma!" },
11});
12```
13
14## Run locally
15
16```sh
17bun install
18bun alchemy dev
19```
20
21The Website runs native `vinext dev` with hot reload and creates no Prisma
22resources. Apply `Alchemy.remote()` to use live Compute during development.
23
24## Deploy
25
26Configure [Prisma credentials](https://alchemy.run/prisma/setup), then run:
27
28```sh
29bun alchemy deploy
30```
31
32The site creates its own database-less project. Use `project` for an existing
33project, `domain` for a custom hostname, and `compute` for deployment options.
34The routes exercise a rendered home page, request-dependent `/api/hello`,
35`/isr`, `/example.json`, and `/robots.txt`.
36
37The default data cache is process-local. Set a redacted `REDIS_URL` for a
38persistent shared Redis cache. Prisma.Website does not provision Redis.
39`@vercel/nft` packages locally installed runtime dependencies; native addons
40must be built for Linux.
41
42## Test and clean up
43
44```sh
45bun test test/dev.test.ts
46ALCHEMY_PROFILE=testing bun test test/integ.test.ts
47bun alchemy destroy
48```
49
50The live suite destroys its previous stack before deploying and cleans up
51afterward. See the [vinext guide](https://alchemy.run/prisma/frontend/vinext).