forked from logzio/logz-docs
/
netlify.toml
40 lines (34 loc) · 1.24 KB
/
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
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
publish = "_site/"
command = "./build.sh"
# Production context: all deploys from the Production branch set in your site's
# deploy contexts will inherit these settings.
[context.production]
publish = "_site/"
command = "JEKYLL_ENV=production ./build.sh"
# Deploy Preview context: all deploys resulting from a pull/merge request will
# inherit these settings.
[context.deploy-preview]
publish = "_site/"
command = "JEKYLL_ENV=develop ./build.sh"
# Branch Deploy context: all deploys that are not from a pull/merge request or
# from the Production branch will inherit these settings.
[context.branch-deploy]
publish = "_site/"
command = "JEKYLL_ENV=develop ./build.sh"
# Netlify doc on redirects:
# https://www.netlify.com/docs/redirects/
[[redirects]]
from = "https://logz-docs.netlify.com/*"
to = "https://docs.logz.io/:splat"
status = 301
force = true
[[redirects]]
from = "/user-guide/access-and-authentication/*"
to = "/user-guide/tokens/:splat"
status = 301
force = true