-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
25 lines (23 loc) · 1.22 KB
/
Copy path.env.example
File metadata and controls
25 lines (23 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
# ---------------------------------------------------------------------------
# CyberSim UI — environment configuration
#
# Copy this file to `.env` (the `copy_dotenv` and `project:start` npm scripts
# do this for you). Create React App only reads `.env` when the dev server
# starts, so if you change a value, restart `npm start` for it to take effect.
# Every variable must be prefixed with REACT_APP_ to be visible to the app.
# ---------------------------------------------------------------------------
# Backend API base URL.
# Local deployment: the backend running on your machine (default below).
# Cloud deployment: the deployed backend, e.g. https://api.cybersim.app
REACT_APP_API_URL=http://localhost:3001
# Which scenario the frontend loads.
# Local / bare domain (localhost, cybersim.app):
# set it explicitly here.
# Cloud subdomains (cso.cybersim.app, city.cybersim.app, ...):
# the slug is taken from the subdomain automatically and THIS VALUE IS
# IGNORED.
#
# IMPORTANT (local): this must match the scenario your backend has seeded /
# loaded. A mismatch makes the app request data that doesn't exist. If left
# unset it defaults to "cso" and logs a console warning.
REACT_APP_SCENARIO_SLUG=cso