diff options
| author | Sebastien Castiel <sebastien@castiel.me> | 2023-12-07 16:44:01 -0500 |
|---|---|---|
| committer | Sebastien Castiel <sebastien@castiel.me> | 2023-12-07 16:44:01 -0500 |
| commit | 0b27f90fb76a2492c17a958b6dd807e6fbbf8030 (patch) | |
| tree | bfc9c0e533eb28b43bcded9c53020dc15bca1955 /src/lib | |
| parent | 6611e3a187e5398f686449938b7cf1ddbfcb5392 (diff) | |
Titles and navigation
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/env.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/env.ts b/src/lib/env.ts new file mode 100644 index 0000000..af5616c --- /dev/null +++ b/src/lib/env.ts @@ -0,0 +1,9 @@ +import { z } from 'zod' + +const envSchema = z.object({ + NEXT_PUBLIC_BASE_URL: z.string().url(), + POSTGRES_URL_NON_POOLING: z.string().url(), + POSTGRES_PRISMA_URL: z.string().url(), +}) + +export const env = envSchema.parse(process.env) |
