Deploy TypeScript apps next to Prisma Postgres: Prisma Compute is now in Public Beta
Prisma Compute is now in Public Beta: deploy a TypeScript app right next to your Prisma Postgres database, with custom domains and database branches.
Prisma Next makes enums first-class with typed reads and writes, and adds a native UUID storage type for PostgreSQL columns. Prisma ORM ships more specific driver adapter error messages.
Highlights
Prisma Compute is now in Public Beta
Hosting an app close to its database used to mean wiring up a separate platform and managing two sets of environments. Prisma Compute deploys TypeScript apps alongside Prisma Postgres, with hosting, database branches, and previews managed together. It is now open to everyone in Public Beta.
Note: Prisma Compute is in Public Beta. Behavior and limits may still change.
Read the launch announcement for what is included. To deploy your first app, start with the Prisma Compute docs.
NewPrisma Next adds first-class enums and native UUID columns
Working with enums and UUIDs in Prisma Next meant extra mapping in application code. Enums are now first-class, with typed reads and writes and declaration-order sorting, and PostgreSQL columns can use a native UUID storage type.
Enums are authored directly in the schema and typed on reads:
enum Role {
USER
ADMIN
}
model User {
id String @id @default(uuid())
role Role @default(USER)
}Shipped in prisma/prisma-next#769 and prisma/prisma-next#810.
Prisma Compute
Prisma Compute adds custom domain support for services.
- Prisma Compute services can now serve traffic from a custom domain. For the design behind it, read How we built custom domains.
Prisma Next
Prisma Next adds transaction grouping on the SQLite facade.
- The Prisma Next SQLite facade gains
db.transaction()for grouping writes. (prisma/prisma-next#737)
Prisma ORM
Prisma ORM ships more specific error messages for driver adapters.
- Prisma ORM driver adapter errors now carry more specific messages. (prisma/prisma#29624)
Guides and articles
- Prisma Next Is ~90% As Fast as Raw PG: benchmarks Prisma Next query performance against raw PostgreSQL drivers.
- We put Bun's Rust rewrite in production on Prisma Compute: reports production experience running the Bun runtime on Prisma Compute.
Need help applying these changes in production? Prisma Enterprise Support can help with schema design, performance, security, and compliance.