chore(debug): envs in api functions

This commit is contained in:
Michael Zetterberg
2024-05-17 14:17:55 +02:00
parent afb27fc173
commit e9be5a33a9

4
env/server.ts vendored
View File

@@ -1,6 +1,8 @@
import { createEnv } from "@t3-oss/env-nextjs"
import { z } from "zod"
console.warn({ PROCESS_ENV: process.env })
export const env = createEnv({
/**
* Due to t3-env only checking typeof window === "undefined"
@@ -23,7 +25,7 @@ export const env = createEnv({
CURITY_ISSUER_USER: z.string(),
CYPRESS_BASE_URL: z.string().default("http://127.0.0.1:3000"),
DESIGN_SYSTEM_ACCESS_TOKEN: z.string(),
ENVTEST: z.string(),
ENVTEST: z.string().optional(),
// https://env.t3.gg/docs/recipes#booleans
NEXTAUTH_DEBUG: z
.string()