-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
44 lines (36 loc) · 1.45 KB
/
Copy path.env.example
File metadata and controls
44 lines (36 loc) · 1.45 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# DevCommunity Frontend — environment template
# Copy to .env and fill in values: cp .env.example .env
# --- Vite dev server ---
VITE_PORT=3351
VITE_HOST=0.0.0.0
# --- API (backend) ---
VITE_API_BASE_URL=http://localhost:3344/api
VITE_API_URL=http://localhost:3344
VITE_API_PORT=3344
# --- App URLs ---
VITE_APP_URL=http://localhost:3351
# --- Site metadata ---
VITE_SITE_NAME=DevCommunity
VITE_SITE_DESCRIPTION=The Web3 Developer Community Platform
# --- Feature flags ---
VITE_ENABLE_PWA=true
VITE_ENABLE_NOTIFICATIONS=true
VITE_ENABLE_ANALYTICS=false
# --- reCAPTCHA (public site key only — safe for browser exposure) ---
VITE_RECAPTCHA_SITE_KEY=your_recaptcha_site_key_here
# --- SEO / production server (server.js) ---
PORT=3352
SITE_NAME=DevCommunity
NODE_ENV=development
# Optional explicit API for SEO fetches (overrides VITE_* when not on a production host):
# SEO_API_URL=https://api.devcommunity.io/api
# Same-server API URL — bypasses Cloudflare for SEO metadata fetches (required on Hetzner).
# Verify port: curl -s http://127.0.0.1:PORT/api/health
# SEO_API_INTERNAL_URL=http://127.0.0.1:3350/api
# Public hostname for SEO when the Node server sees an internal Host header (Docker/nginx):
# SEO_PUBLIC_HOST=devcommunity.io
# Production examples (uncomment when deploying):
# VITE_API_BASE_URL=https://api.devcommunity.io/api
# VITE_API_URL=https://api.devcommunity.io
# VITE_APP_URL=https://devcommunity.io
# SEO_API_URL=https://api.devcommunity.io/api