-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
119 lines (86 loc) · 2.12 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
[dev]
framework = "#static"
[build]
command = "echo No build for this site, we are living on the edge"
publish = "public"
[context.production]
environment = { MY_IMPORTANT_VARIABLE = "this is a very important secret" }
# The URL for each edge function
[[edge_functions]]
function = "transform"
path = "/*"
[[edge_functions]]
function = "set-response-header"
path = "/*"
[[edge_functions]]
function = "set-request-header"
path = "/*"
[[edge_functions]]
function = "include"
path = "/*"
[[edge_functions]]
path = "/hello"
function = "hello"
[[edge_functions]]
path = "/geolocation"
function = "geolocation"
[[edge_functions]]
path = "/json"
function = "json"
[[edge_functions]]
path = "/cookies"
function = "cookies"
[[edge_functions]]
path = "/rewrite"
function = "rewrite"
[[edge_functions]]
path = "/abtest"
function = "abtest"
[[edge_functions]]
path = "/image-internal"
function = "image-internal"
[[edge_functions]]
path = "/image-external"
function = "image-external"
[[edge_functions]]
path = "/log"
function = "log"
[[edge_functions]]
path = "/country-block"
function = "country-block"
[[edge_functions]]
path = "/localized-content"
function = "localized-content"
[[edge_functions]]
path = "/fetch-joke"
function = "proxy-requests"
[[edge_functions]]
path = "/environment"
function = "environment"
[[edge_functions]]
path = "/error"
function = "error"
[[edge_functions]]
path = "/long-running"
function = "long-running"
[[edge_functions]]
path = "/sse"
function = "sse"
[[edge_functions]]
path = "/context-site"
function = "context-site"
[[edge_functions]]
path = "/wasm"
function = "wasm"
# Serve pages explaining each example
[[edge_functions]]
path = "/example/*"
function = "[page]"
# Serve our index page
[[edge_functions]]
path = "/"
function = "[page]"
[[redirects]]
from = "/img/og/:text"
to = "https://res.cloudinary.com/netlify/image/upload/c_fit,g_west,h_400,co_rgb:FFFFFFFF,l_text:netlify.com:Pacaembu-Bold.ttf_57::text,w_1053,x_46/v1619123320/netlify.com/default-og-background-learn-more.png"
status = 200