Skip to content

Commit

Permalink
quickfix: missing env var in production (added default value for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
geclos committed Sep 5, 2024
1 parent 88d8b4d commit c031599
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/env/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ export const env = createEnv({
S3_BUCKET: z.string().optional(),
AWS_ACCESS_KEY: z.string().optional(),
AWS_ACCESS_SECRET: z.string().optional(),
DRIVE_DISK: z.union([z.literal('local'), z.literal('s3')]),
DRIVE_DISK: z
.union([z.literal('local'), z.literal('s3')])
.optional()
.default('local'),
},
runtimeEnv: {
...process.env,
// TODO: Remove once s3 is implemented
DRIVE_DISK: 'local',
},
runtimeEnv: process.env,
})

0 comments on commit c031599

Please sign in to comment.