-
Notifications
You must be signed in to change notification settings - Fork 60
/
netlify.toml
29 lines (24 loc) · 999 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
24
25
26
27
28
29
[build]
command = "npm run netlify-build"
publish = "build/"
[build.environment]
# suppress failures for for build warnings
CI = "false"
[template.environment]
DAILY_API_KEY = "Replace with Daily 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 DAILY_API_KEY_PLACEHOLDER"}
# The following redirect is intended for use with most SPAs that handle routing internally.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200