Skip to content

Commit

Permalink
quickfix: andres seteas bien las env vars o k ase
Browse files Browse the repository at this point in the history
  • Loading branch information
geclos committed Sep 13, 2024
1 parent e7919d6 commit 6daae4c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions apps/web/src/app/(public)/api/health/route.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import env from '$/env'

export async function GET() {
// NOTE: This is so the health check fails if the env is not correctly loaded
console.log(env)

return Response.json({ status: 'ok' })
}
16 changes: 8 additions & 8 deletions packages/env/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,26 @@ export const env = createEnv({
server: {
NODE_ENV: z.string(),
DATABASE_URL: z.string().url(),
QUEUE_PORT: z.coerce.number().optional().default(6379),
QUEUE_HOST: z.string(),
QUEUE_PASSWORD: z.string().optional(),
LATITUDE_URL: z.string().url(),
MAILER_API_KEY: z.string().optional(),
FROM_MAILER_EMAIL: z.string(),
LATITUDE_DOMAIN: z.string(),
FILE_PUBLIC_PATH: z.string().optional(),
FILES_STORAGE_PATH: z.string().optional(),
QUEUE_PORT: z.coerce.number().optional().default(6379),
QUEUE_PASSWORD: z.string().optional(),
MAILER_API_KEY: z.string().optional(),
AWS_REGION: z.string().optional(),
S3_BUCKET: z.string().optional(),
AWS_ACCESS_KEY: z.string().optional(),
AWS_ACCESS_SECRET: z.string().optional(),
FILE_PUBLIC_PATH: z.string(),
FILES_STORAGE_PATH: z.string(),
SENTRY_DSN: z.string().optional(),
SENTRY_ORG: z.string().optional(),
SENTRY_PROJECT: z.string().optional(),
DRIVE_DISK: z
.union([z.literal('local'), z.literal('s3')])
.optional()
.default('local'),
SENTRY_DSN: z.string().optional(),
SENTRY_ORG: z.string().optional(),
SENTRY_PROJECT: z.string().optional(),
},
runtimeEnv: {
...process.env,
Expand Down

0 comments on commit 6daae4c

Please sign in to comment.