forked from netlify/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
56 lines (52 loc) · 1.57 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
[build]
# This will be run the site build
command = "npm run site:build"
# This is the directory is publishing to netlify's CDN
publish = "site/dist"
[build.environment]
NODE_VERSION = "12"
AWS_LAMBDA_JS_RUNTIME = "nodejs14.x"
[functions]
# Sets a custom directory for Netlify Functions
directory = "functions"
# Specifies `esbuild` for functions bundling
node_bundler = "esbuild"
#####################
# Redirect Rules #
#####################
[[redirects]]
# Telemetry link
from = "/telemetry/*"
to = "/.netlify/functions/telemetry"
status = 200
force = true
[[redirects]]
# Old CLI download links.
from = "/download/latest/mac"
to = "https://github.com/netlify/netlifyctl/releases/download/v0.4.0/netlifyctl-darwin-amd64-0.4.0.tar.gz"
status = 302
force = false
[[redirects]]
# Old CLI download links.
from = "/download/latest/linux"
to = "https://github.com/netlify/netlifyctl/releases/download/v0.4.0/netlifyctl-linux-amd64-0.4.0.tar.gz"
status = 302
force = false
[[redirects]]
# Old CLI download links.
from = "/download/latest/windows"
to = "https://github.com/netlify/netlifyctl/releases/download/v0.4.0/netlifyctl-windows-amd64-0.4.0.zip"
status = 302
force = false
[[redirects]]
# Old CLI download links.
from = "/download/latest/source-zip"
to = "https://github.com/netlify/netlifyctl/archive/v0.4.0.zip"
status = 302
force = false
[[redirects]]
# Old CLI download links.
from = "/download/latest/source-tar"
to = "https://github.com/netlify/netlifyctl/archive/v0.4.0.tar.gz"
status = 302
force = false