env.mjs — ui Source File
Architecture documentation for env.mjs, a javascript file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 16ab8d44_2d61_f3b2_2fd2_9c2ae5a146a3["env.mjs"] 7aa515ef_dcd5_1b3e_e466_ebe7c5eabbb4["env-nextjs"] 16ab8d44_2d61_f3b2_2fd2_9c2ae5a146a3 --> 7aa515ef_dcd5_1b3e_e466_ebe7c5eabbb4 6802ce19_522d_e5fb_e458_8826d9f6952e["zod"] 16ab8d44_2d61_f3b2_2fd2_9c2ae5a146a3 --> 6802ce19_522d_e5fb_e458_8826d9f6952e style 16ab8d44_2d61_f3b2_2fd2_9c2ae5a146a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { createEnv } from "@t3-oss/env-nextjs";
import { z } from "zod";
export const env = createEnv({
/**
* Specify your server-side environment variables schema here. This way you can ensure the app
* isn't built with invalid env vars.
*/
server: {
NODE_ENV: z.enum(["development", "test", "production"]),
},
/**
* Specify your client-side environment variables schema here. This way you can ensure the app
* isn't built with invalid env vars. To expose them to the client, prefix them with
* `NEXT_PUBLIC_`.
*/
client: {
// NEXT_PUBLIC_CLIENTVAR: z.string().min(1),
},
/**
* You can't destruct `process.env` as a regular object in the Next.js edge runtimes (e.g.
* middlewares) or client-side so we need to destruct manually.
*/
runtimeEnv: {
NODE_ENV: process.env.NODE_ENV,
// NEXT_PUBLIC_CLIENTVAR: process.env.NEXT_PUBLIC_CLIENTVAR,
},
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation.
* This is especially useful for Docker builds.
*/
skipValidation: !!process.env.SKIP_ENV_VALIDATION,
});
Dependencies
- env-nextjs
- zod
Source
Frequently Asked Questions
What does env.mjs do?
env.mjs is a source file in the ui codebase, written in javascript.
What does env.mjs depend on?
env.mjs imports 2 module(s): env-nextjs, zod.
Where is env.mjs in the architecture?
env.mjs is located at packages/shadcn/test/fixtures/frameworks/t3-pages/src/env.mjs (directory: packages/shadcn/test/fixtures/frameworks/t3-pages/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free