-
Notifications
You must be signed in to change notification settings - Fork 1
/
netlify.toml
91 lines (72 loc) · 2.41 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
## More info about the config file at
# https://docs.netlify.com/configure-builds/file-based-configuration
#
[build]
# Directory to change to before starting a build.
# If not set, defaults to the root directory.
base = ""
# Directory that contains the deploy-ready HTML files and assets generated by
# the build. This is relative to the base directory if one has been set, or the
# root directory if a base has not been set. This sample publishes the
# directory located at the absolute path "root/project/build-output"
publish = "deploy/"
# Default build command.
# See the available default environment variables
# https://docs.netlify.com/configure-builds/environment-variables/#netlify-configuration-variables
# Netlify will auto install the deps.
# https://docs.netlify.com/configure-builds/manage-dependencies/#python
# https://github.com/netlify/build-image/blob/focal/included_software.md
command = 'bash netlify_build.sh'
[build.processing.html]
# The automatic redirection from /path/folder-> /path/folder/ is disabled
# as it break the proxy for the documentation.
pretty_urls = true
[build.environment]
GIT_LFS_ENABLED = "true"
SFTPPLUS_TARGET = "production"
PYTHON_VERSION = "2.7"
DOCS_ROBOT = "noindex,nofollow"
[context.main.environment]
DOCS_ROBOT = "all"
[context.deploy-preview.environment]
SFTPPLUS_TARGET = "dev"
# Generic rules for any branch.
[context.branch-deploy.environment]
SFTPPLUS_TARGET = "production"
# Rules for staging branch.
[context.staging.environment]
SFTPPLUS_TARGET = "production"
[[redirects]]
from = "/documentation/sftpplus/versions.js"
to = "https://www.sftpplus.com/documentation/sftpplus/versions.js"
status = 200
force = true
[[redirects]]
from = "/static/*"
to = "https://www.sftpplus.com/static/:splat"
status = 301
force = true
[[redirects]]
from = "/product/*"
to = "https://www.sftpplus.com/product/:splat"
status = 301
[[redirects]]
from = "/pricing/*"
to = "https://www.sftpplus.com/pricing/:splat"
status = 301
[[redirects]]
from = "/support/*"
to = "https://www.sftpplus.com/support/:splat"
status = 301
[[redirects]]
from = "/articles/*"
to = "https://www.sftpplus.com/articles/:splat"
status = 301
[[redirects]]
from = "/about/*"
to = "https://www.sftpplus.com/about/:splat"
status = 301
[[redirects]]
from = "/resources/*"
to = "https://www.sftpplus.com/resources/:splat"
status = 301