feat(cli): add runtime option in prisma schema (#561)

This commit is contained in:
Aman Varshney
2025-09-03 15:29:37 +05:30
committed by GitHub
parent 2ec1be87e6
commit a0486c9cb7
8 changed files with 72 additions and 36 deletions

View File

@@ -2,10 +2,19 @@ generator client {
provider = "prisma-client"
output = "../generated"
moduleFormat = "esm"
{{#if (eq runtime "bun")}}
runtime = "bun"
{{/if}}
{{#if (eq runtime "node")}}
runtime = "nodejs"
{{/if}}
{{#if (eq runtime "workers")}}
runtime = "workerd"
{{/if}}
}
datasource db {
provider = "postgres"
provider = "postgresql"
url = env("DATABASE_URL")
{{#if (eq dbSetup "supabase")}}
directUrl = env("DIRECT_URL")