Configuration

Runtime environment configuration

Read intentionally public runtime label dynamically. Never expose secrets or assume runtime values rewrite client bundles.

Formal Syntax & Structure

nextjs syntaxnextjs
await connection(); process.env.DISPLAY_REGION

Working Example

Example Snippetnextjs
import {connection} from 'next/server';export default async function Page(){await connection(); const region=process.env.DISPLAY_REGION; return <p>Region: {region ?? 'unknown'}</p>;}
Next.js Reference