✅ This component demonstrates how to use environment variables in client-side.
⚠️ Environment variable not found
// 1️⃣ .env.local file (root of your project)
NEXT_PUBLIC_API_URL=https://api.example.com
// 2️⃣ Accessing in a Client Component
const publicApiUrl = process.env.NEXT_PUBLIC_API_URL;
NEXT_PUBLIC_ are accessible in client-side components..env.local values.