-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
71 lines (58 loc) · 1.96 KB
/
Copy path.env.example
File metadata and controls
71 lines (58 loc) · 1.96 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
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
# ==================================================
# ArcForge Environment Variables
# ==================================================
#
# Copy this file and rename the copy to:
# .env
#
# Replace the placeholder database values with your
# own PostgreSQL credentials.
#
# Never commit the real .env file.
#
# IMPORTANT:
# Variables beginning with VITE_ are included in the
# client bundle and are visible in the browser.
# Never use VITE_ for passwords, database credentials,
# API secrets, or other private information.
# --------------------------------------------------
# Application
# --------------------------------------------------
# Use "development" locally.
# Use "production" in the deployed server environment.
NODE_ENV=development
# Local Express server port.
# Render supplies PORT automatically in production.
PORT=3001
# --------------------------------------------------
# Client API Configuration
# --------------------------------------------------
# Base URL of the ArcForge Express API.
#
# Local development:
VITE_API_BASE_URL=http://localhost:3001
# Production example:
# VITE_API_BASE_URL=https://arcforge-api.onrender.com
# --------------------------------------------------
# Server and CORS Configuration
# --------------------------------------------------
# Frontend origin allowed to access the Express API.
#
# Local development:
CLIENT_URL=http://localhost:5173
# Production example:
# CLIENT_URL=https://arcforge-client.onrender.com
# --------------------------------------------------
# PostgreSQL Database
# --------------------------------------------------
# Connect to the hosted database from a terminal with:
#
# PGPASSWORD={Password} psql -h {Hostname}.{Region}-postgres.render.com -U {Username} {Database}
PGUSER="{Username}"
PGPASSWORD="{Password}"
PGHOST="{Hostname}.{Region}-postgres.render.com"
PGPORT=5432
PGDATABASE="{Database}"
# Use "true" for hosted databases requiring SSL.
# Use "false" for a local database without SSL.
DB_SSL=false