Skip to content

Commit

Permalink
change UPDATE_PRICES behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7d8 committed Dec 5, 2024
1 parent 2036bf3 commit d5d82de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
DATABASE_URL="postgresql://blueprint_api:local@db:5432/blueprint_api"

UPDATE_PRICES=true
PORT=8000
INTERNAL_KEY="HKj5LZnavEfjqYDTEUi" # random string, if leaked change ASAP

Expand Down
2 changes: 1 addition & 1 deletion src/globals/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const infos = z.object({
DATABASE_URL: z.string(),
DATABASE_URL_PRIMARY: z.string().optional(),

UPDATE_PRICES: z.enum(['true', 'false']).transform((str) => str === 'true').default('false'),
UPDATE_PRICES: z.enum(['true', 'false']).transform((str) => str === 'true'),

PORT: z.string().transform((str) => parseInt(str)).optional(),
INTERNAL_KEY: z.string(),
Expand Down

0 comments on commit d5d82de

Please sign in to comment.