View as Json

Env Configuration

The env-config component provides a split between server-only and client-safe variables, with Zod-powered validation for both.


Installation Guide

npx servercn-cli@latest add env-config

Usage

import env from "@/configs/env";
console.log(env.DATABASE_URL);
console.log(env.JWT_ACCESS_SECRET);

File & Folder Structure

Loading files...

Installation

npx servercn-cli@latest add env-config