Skip to content

fix(ci): pass dummy DB env for prisma generate in deploy workflow#5

Merged
BODMAT merged 1 commit into
masterfrom
fix/ci-deploy-prisma-env
May 21, 2026
Merged

fix(ci): pass dummy DB env for prisma generate in deploy workflow#5
BODMAT merged 1 commit into
masterfrom
fix/ci-deploy-prisma-env

Conversation

@BODMAT

@BODMAT BODMAT commented May 21, 2026

Copy link
Copy Markdown
Owner

prisma generate fails in the deploy workflow because DIRECT_URL is not
defined. The variable is only set in ci.yml (where a real Postgres runs),
but not in deploy.yml.

prisma generate does not connect to the database - it only reads
schema.prisma and generates TypeScript types. Any non-empty string
satisfies the env check. Adding dummy values to the build step unblocks
the deploy without affecting the actual DB connection.

@BODMAT BODMAT merged commit 02a678d into master May 21, 2026
1 check passed
@BODMAT BODMAT deleted the fix/ci-deploy-prisma-env branch May 21, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant