View as Json

Env Configuration

Type-safe server and client environment variables for Next.js.

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