forked from segmentio/segment-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
42 lines (32 loc) · 972 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
39
40
41
42
[build]
command = "jekyll algolia && yarn build"
# Ignore builds unless [netlify-build] is present in commit message
# ignore = "git log -1 --pretty=%B | ( ! grep -q '\[netlify\-build\]' )"
# Ignore if [netlify-ignore] is present
# Don't build if there are no changes to src/
## ignore = "git diff --quiet HEAD^ HEAD src/"
[context.deploy-preview]
command = "yarn develop"
ignore = "./scripts/ignore.sh"
[context.branch-deploy]
command = "yarn build"
# ignore = "./scripts/ignore.sh"
[context.develop]
command = "yarn develop"
[[redirects]]
from = "/docs/*"
to = "/:splat"
status = 200
[[redirects]]
from = "/docs/assets/docs.bundle.js"
to = "/assets/docs.bundle.js"
status = 200
[[plugins]]
package = "netlify-plugin-jekyll-cache"
[plugins.inputs]
jekyllSource = "/src"
[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"