Loading Environment Variables

Referencing Other Variables

TWITTER_USER=nextjs
TWITTER_URL=https://x.com/$TWITTER_USER  // <https://x.com/nextjs>

Bundle environment variables for the browser

NEXT_PUBLIC_API_URL=https://api.example.com  // Available in client components
SECRET_KEY=supersecret // Only available on the server (server components, server actions, route handlers)