-
Notifications
You must be signed in to change notification settings - Fork 359
/
netlify.toml
63 lines (59 loc) · 1.76 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
[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]
# cannot use node 18, as we use x0 which uses webpack 4
NODE_VERSION = "16"
AWS_LAMBDA_JS_RUNTIME = "nodejs16.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]]
# Bugsnag link
from = "/report-error"
to = "/.netlify/functions/error-reporting"
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