-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
30 lines (24 loc) · 1.22 KB
/
.env.example
File metadata and controls
30 lines (24 loc) · 1.22 KB
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
# FieldTrack Frontend — Environment Variables
# ---------------------------------------------------------------------------------
# API connectivity — choose ONE of the two modes below:
# ---------------------------------------------------------------------------------
# MODE 1 — Direct (local dev)
# Frontend calls the API directly. No proxy needed.
# NEXT_PUBLIC_API_BASE_URL=http://localhost:4000
# MODE 2 — Proxy (production / staging)
# Frontend calls /api/proxy/* which is forwarded server-side to API_DESTINATION_URL.
# This avoids CORS and keeps the real API URL out of the browser bundle.
#
# NEXT_PUBLIC_API_BASE_URL=/api/proxy
# API_DESTINATION_URL=https://api.getfieldtrack.app
#
# Why two vars in proxy mode?
# NEXT_PUBLIC_* values are embedded in the browser bundle (visible to users).
# API_DESTINATION_URL is server-side only and never reaches the client.
# ---------------------------------------------------------------------------------
NEXT_PUBLIC_API_BASE_URL=http://localhost:4000
# Required only in proxy mode (MODE 2):
# API_DESTINATION_URL=https://api.getfieldtrack.app
# Required: Supabase
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key