-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
23 lines (20 loc) · 836 Bytes
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[build]
command = "npm run netlify-build"
publish = "build/"
[template.environment]
REACT_APP_DAILY_API_KEY = "Replace with API key"
[[redirects]]
# Proxies the Daily /rooms endpoint, POST will create a room and a GET will return a list
# The placeholder below gets replaced when the build command runs
# as suggested here: https://docs.netlify.com/configure-builds/file-based-configuration/#inject-environment-variable-values
# IF YOU RUN THIS COMMAND LOCALLY DO NOT COMMIT THIS FILE WITH THE API KEY IN IT
# MAKE SURE THE PLACEHOLDER TEXT IS THERE WHENEVER YOU ARE DONE TESTING LOCALLY
from = "/api/rooms"
to = "https://api.daily.co/v1/rooms"
status = 200
force = true
headers = {Authorization = "Bearer REACT_APP_DAILY_API_KEY_PLACEHOLDER"}
[[redirects]]
from = "/*"
to = "/index.html"
status = 200