-
Notifications
You must be signed in to change notification settings - Fork 203
/
netlify.toml
94 lines (71 loc) · 2 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
92
93
94
[build]
publish = "dist/"
command = "pnpm run netlify-build"
# https://docs.netlify.com/configure-builds/file-based-configuration/#functions
[functions]
# Sets a custom directory for Netlify Functions
directory = "dist/functions"
# Specifies `esbuild` for functions bundling
# node_bundler = "esbuild"
# Flags "astro" as an external node module for all functions
# external_node_modules = ["astro"]
# Includes all Markdown files inside the "files/" directory.
# included_files = ["files/*.md"]
# Astro Entry function
[functions."entry"]
# https://www.netlify.com/blog/2021/08/12/how-to-include-files-in-netlify-serverless-functions/
included_files = ["netlify.toml"]
[build.environment]
NPM_FLAGS = "--no-optional"
CI = "1"
[[headers]]
for = "/search-index.st"
[headers.values]
Content-Type = "application/wasm"
Cache-Control = "max-age=43200, must-revalidate"
# https://docs.netlify.com/configure-builds/file-based-configuration/#redirects
# These redirect are lower priority than _redirects in the root or dist
# old node redirect
[[redirects]]
from = "/app/node"
to = "/app/nodejs"
status = 301
# old git redirect
[[redirects]]
from = "/app/git"
to = "/app/git-version-control"
status = 301
# old electron redirect
[[redirects]]
from = "/app/electron"
to = "/app/electron-framework"
status = 301
# Vectornater rebrand to Linearity Curve
[[redirects]]
from = "/app/vectornator"
to = "/app/linearity-curve"
status = 301
# imac redirect
[[redirects]]
from = "/device/apple-silicon-imac"
to = "/device/m1-imac/"
status = 307
# Category Redirects
[[redirects]]
from = "/kind/entertainment"
to = "/kind/entertainment-and-media-apps/"
status = 301
[[redirects]]
from = "/kind/photo-tools"
to = "/kind/photo-and-graphic-tools/"
status = 301
# Other Redirects
# Random broken link from Chinese sites
[[redirects]]
from = "/。"
to = "/"
status = 301
[[redirects]]
from = "/%E3%80%82"
to = "/"
status = 301