-
Notifications
You must be signed in to change notification settings - Fork 45
/
netlify.toml
38 lines (33 loc) · 853 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
30
31
32
33
34
35
36
37
38
[build]
command = """
set -e
pip install -e .
./scripts/gd build-metadata
# glean.js currently requires a virtual environment
python -mvenv venv --without-pip
wget https://bootstrap.pypa.io/get-pip.py
venv/bin/python get-pip.py
venv/bin/pip install wheel
npm ci
npm run build
if [ "$STORYBOOK" ]; then
npm run build-storybook
mv storybook-static public/storybook
fi
"""
environment = { PYTHON_VERSION = "3.8" }
publish = "public"
[context.production]
[context.production.environment]
CONTEXT = "production"
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/data/*"
[headers.values]
Access-Control-Allow-Origin = "*"
[[redirects]]
from = "/api/v1/*"
to = "/.netlify/functions/:splat"
status = 200
[functions]
directory = ".netlify"