angelcervera
angelcervera
Explore posts from servers
PPrisma
Created by angelcervera on 3/8/2025 in #help-and-questions
Why `prisma generate --sql` needs to have `DATABASE_URL`?
I'm getting this error when executing prisma generate --sql but not if executing prisma generate:
4.679 api:build: > prisma generate --sql
4.679 api:build:
5.545 api:build: Prisma schema loaded from prisma/schema.prisma
5.598 api:build: Error: Prisma schema validation - (get-config wasm)
5.598 api:build: Error code: P1012
5.598 api:build: error: Environment variable not found: DATABASE_URL.
5.598 api:build: --> prisma/schema.prisma:9
5.598 api:build: |
5.598 api:build: 8 | provider = "postgresql"
5.598 api:build: 9 | url = env("DATABASE_URL")
5.598 api:build: |
4.679 api:build: > prisma generate --sql
4.679 api:build:
5.545 api:build: Prisma schema loaded from prisma/schema.prisma
5.598 api:build: Error: Prisma schema validation - (get-config wasm)
5.598 api:build: Error code: P1012
5.598 api:build: error: Environment variable not found: DATABASE_URL.
5.598 api:build: --> prisma/schema.prisma:9
5.598 api:build: |
5.598 api:build: 8 | provider = "postgresql"
5.598 api:build: 9 | url = env("DATABASE_URL")
5.598 api:build: |
Why does --sql need to connect to the DB? May I disable it?
3 replies
BABetter Auth
Created by angelcervera on 3/4/2025 in #help
Create token from CLI
I have a API server with BetterAuth installed. Now, I need to test it but still I don't have a front end. How to create a token from the command line? Better with curl. Also, I need to to be able to use other protected endpoints with Postman.
2 replies