Skip to content

Commit

Permalink
fix(api/env): allow postgresql:// along side postgres:// for database…
Browse files Browse the repository at this point in the history
… url
  • Loading branch information
ewen-lbh committed Nov 13, 2024
1 parent 2a6098d commit 3e47614
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tough-ligers-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@churros/api': patch
---

allow postgresql: protocol alongside postgres: protocol for database_url env variable
2 changes: 1 addition & 1 deletion packages/api/src/env.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { z } from 'zod';

export const environmentSchema = z.object({
DATABASE_URL: uri('postgres').describe(
DATABASE_URL: uri('postgres', 'postgresql').describe(
'Database connection string. See https://www.prisma.io/docs/reference/database-reference/connection-urls',
),
REDIS_URL: uri('redis').describe('Redis connection string.'),
Expand Down

0 comments on commit 3e47614

Please sign in to comment.