Closed skoshx closed 3 months ago
Repro:
$ bun install @t3-oss/env-core
Create file env.ts:
env.ts
import { createEnv } from "@t3-oss/env-core";
This gives the error:
My current workaround:
// @ts-ignore import { createEnv } from "@t3-oss/env-core"; import { createEnv as typedCreateEnv } from "@t3-oss/env-core/dist/index" import { z } from "zod" export const env = (createEnv as typeof typedCreateEnv)({ clientPrefix: 'PUBLIC_', server: { TOP_SECRET: z.string().min(1) }, client: {}, runtimeEnv: process.env, emptyStringAsUndefined: true, })
Repro:
Create file
env.ts
:This gives the error:
My current workaround: