⚙️
CC10045 min
Day 25
Production Environment Variables
Let's secure your production secrets!
Today's Lesson
Production secrets are stored in the platform, never in your code. Your local `.env.local` doesn't exist on Vercel - you need to add those variables in Vercel's dashboard.
Today's Tasks
- 1Understand the difference between local and production env vars
- 2Add an environment variable in Vercel
- 3Verify it works in production
Prompt to Use
Explain the difference between .env.local (my computer) and production environment variables (Vercel). Then help me add an environment variable in Vercel's dashboard. Show me how to verify it's working.
Expected Outcome
Understanding of production secrets management.
New Terms
- Production Variables
- Vercel Dashboard
- Build-time vs Runtime
Pro Tip
Never commit real API keys to GitHub. Even if you delete them, they're in the Git history forever.
Coming Tomorrow
We'll add a real database with Supabase.
P.S. Security isn't paranoia - it's professionalism.
Your Study Progress
24%
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Day 25 of 100
Today's Tasks
0/3