-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
26 lines (22 loc) · 1.17 KB
/
.env.example
File metadata and controls
26 lines (22 loc) · 1.17 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
# Environment variables for Fatwa Search (Next.js)
# Copy this file to .env.local and fill in the values.
#
# IMPORTANT: API keys are now server-side only (no NEXT_PUBLIC_ prefix).
# This keeps your API keys secure and prevents unauthorized usage.
# Values prefixed with NEXT_PUBLIC_ are exposed to the browser.
# Google API Keys (server-side only - SECURE)
# NEW variable names (recommended):
GOOGLE_API_KEY=your_google_api_key
SEARCH_ENGINE_ID=your_programmable_search_engine_id
SEARCH_ENGINE_ID_EN=your_english_programmable_search_engine_id
YOUTUBE_API_KEY=your_youtube_api_key # can reuse the same Google API key
# LEGACY variable names (for backward compatibility with Create React App migration):
# The API routes support both new and old names. Use these if migrating from CRA:
# REACT_APP_GOOGLE_API_KEY=your_google_api_key
# REACT_APP_SEARCH_ENGINE_ID=your_programmable_search_engine_id
# REACT_APP_YOUTUBE_API_KEY=your_youtube_api_key
# Analytics / Tracking (optional, client-side - SAFE TO EXPOSE)
NEXT_PUBLIC_CLARITY_ID=your_ms_clarity_project_id
NEXT_PUBLIC_GA_ID=G-XXXXXXXXXX
# Legacy analytics (for backward compatibility):
# REACT_APP_CLARITY_ID=your_ms_clarity_project_id