-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.dev.example
More file actions
40 lines (33 loc) · 1.63 KB
/
Copy pathenv.dev.example
File metadata and controls
40 lines (33 loc) · 1.63 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
# .env.dev — Local development environment variables
# Copy this to .env and adjust values for your machine.
# Never commit .env (it is gitignored).
#
# Usage:
# PowerShell: Get-Content .env.dev | ForEach-Object { if ($_ -match '^([^#][^=]*)=(.*)$') { [System.Environment]::SetEnvironmentVariable($matches[1].Trim(), $matches[2].Trim(), 'Process') } }
# bash: set -a && source .env.dev && set +a
# ── PostgreSQL connection ─────────────────────────────────────────────────────
PGHOST=localhost
PGPORT=5433
PGUSER=postgres
PGPASSWORD=changeme_local_only
PGDATABASE=te_mgmt_dev
# ── API settings ──────────────────────────────────────────────────────────────
# Leave API_KEY empty for local dev (unauthenticated).
# Set a strong random value before deploying anywhere reachable.
API_KEY=
# Schemas
CSV_UPLOADS_SCHEMA=csv_uploads
TE_SCHEMA=te_dev
# CORS — frontend dev server ports
CORS_ORIGINS=http://localhost:5173,http://localhost:3000
# Upload limits
MAX_UPLOAD_BYTES=52428800
API_MAX_ROWS=100000
API_MAX_ROW_ERRORS=200
API_POOL_GETCONN_TIMEOUT=5.0
# Safety guard — keep false in dev; set true only when explicitly needed
API_ALLOW_DESTRUCTIVE=false
# ── Frontend (csv-table-hub-main/.env.local) ──────────────────────────────────
# Create csv-table-hub-main/.env.local with:
# VITE_API_BASE=http://localhost:8000
# VITE_API_KEY=