Environment Variable
متغير البيئة
GLS-000037
Beginnerdeployment1 min read
env var.env.env.localNEXT_PUBLICenvironment variables
Definition
A runtime variable injected from outside the code to store secrets, config, and environment settings.
متغير وقت تشغيل يُحقن من خارج الكود لتخزين الأسرار والإعدادات والتكوينات.
Full Definition
Environment variables are key-value pairs injected at runtime to configure an application. They store secrets (API keys, tokens), environment-specific settings, and feature flags. In Next.js, NEXT_PUBLIC_* variables are exposed to the client; all others are server-only. Never commit .env.local to git.
متغيرات البيئة أزواج مفتاح-قيمة تُحقن في وقت التشغيل لضبط التطبيق. تخزن الأسرار والإعدادات الخاصة بالبيئة. في Next.js، متغيرات NEXT_PUBLIC_* مكشوفة للعميل؛ البقية للخادم فقط. لا تضع .env.local في git أبدًا.
Knowledge Graph
AI Builder Tips
No documented mistakes for Environment Variable yet. Check related AI rules for usage guidelines.
Sign in to unlock guided AI explanations from AI Teacher.
Generate a Prompt
Copy this prompt and use it directly with any AI model — no setup needed.
Ready-to-Use Prompt
Help me build a project using Environment Variable. Explain: 1. What is Environment Variable and why it matters 2. The core architecture and required tools 3. Step-by-step implementation plan 4. Common mistakes to avoid 5. Best practices and production tips
Official Resources
No official documentation link on file for Environment Variable yet.