-
Notifications
You must be signed in to change notification settings - Fork 24
/
netlify.toml
61 lines (49 loc) · 1.3 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
[build]
publish = "public"
functions = "functions"
[build.environment]
HUGO_VERSION = "0.140.1"
NODE_VERSION = "20.18.1"
NPM_VERSION = "11.0.0"
[context.production]
command = "npm run build"
[context.deploy-preview]
command = "npm run build -- -b $DEPLOY_PRIME_URL"
[context.branch-deploy]
command = "npm run build -- -b $DEPLOY_PRIME_URL"
[context.next]
command = "npm run build"
[context.next.environment]
HUGO_ENV = "next"
####
[[plugins]]
package = "netlify-plugin-submit-sitemap"
[plugins.inputs]
baseUrl = "https://www.updatecli.io/"
sitemapPath = "/sitemap.xml"
ignorePeriod = 0
providers = [
"google",
"yandex"
]
[dev]
framework = "#custom"
command = "npm run start"
targetPort = 1313
port = 8888
publish = "public"
autoLaunch = false
## A significant amount traffic is not detected by plausible
## https://plausible.io/blog/google-analytics-adblockers-missing-data
## https://plausible.io/docs/proxy/guides/netlify
## https://docs.netlify.com/routing/redirects/
[[redirects]]
from = "/js/script.file-downloads.outbound-links.js"
to = "https://plausible.io/js/script.file-downloads.outbound-links.js"
status = 200
force = true
[[redirects]]
from = "/api/event"
to = "https://plausible.io/api/event"
status = 200
force = true