chore(debug): envs in api functions
This commit is contained in:
4
env/server.ts
vendored
4
env/server.ts
vendored
@@ -1,6 +1,8 @@
|
|||||||
import { createEnv } from "@t3-oss/env-nextjs"
|
import { createEnv } from "@t3-oss/env-nextjs"
|
||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
|
|
||||||
|
console.warn({ PROCESS_ENV: process.env })
|
||||||
|
|
||||||
export const env = createEnv({
|
export const env = createEnv({
|
||||||
/**
|
/**
|
||||||
* Due to t3-env only checking typeof window === "undefined"
|
* Due to t3-env only checking typeof window === "undefined"
|
||||||
@@ -23,7 +25,7 @@ export const env = createEnv({
|
|||||||
CURITY_ISSUER_USER: z.string(),
|
CURITY_ISSUER_USER: z.string(),
|
||||||
CYPRESS_BASE_URL: z.string().default("http://127.0.0.1:3000"),
|
CYPRESS_BASE_URL: z.string().default("http://127.0.0.1:3000"),
|
||||||
DESIGN_SYSTEM_ACCESS_TOKEN: z.string(),
|
DESIGN_SYSTEM_ACCESS_TOKEN: z.string(),
|
||||||
ENVTEST: z.string(),
|
ENVTEST: z.string().optional(),
|
||||||
// https://env.t3.gg/docs/recipes#booleans
|
// https://env.t3.gg/docs/recipes#booleans
|
||||||
NEXTAUTH_DEBUG: z
|
NEXTAUTH_DEBUG: z
|
||||||
.string()
|
.string()
|
||||||
|
|||||||
Reference in New Issue
Block a user