mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): add runtime option in prisma schema (#561)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user