T3 Env Not Showing Type Errors

Hello, I have the following env.mjs file but there is no type error be shown in my IDE even though UPSTASH_API_KEY is not defined in the runtimeEnv. Any idea why this is?

// ./src/env.mjs
import { createEnv } from "@t3-oss/env-nextjs";
import { z } from "zod";

export const env = createEnv({
    server: {
        UPSTASH_API_KEY: z.string(),
    },
    client: {},
    runtimeEnv: {},
});
image.png
Was this page helpful?