forked from Lissy93/web-check
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
74 lines (65 loc) · 1.7 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
# Essential site config
[build]
base = "/"
command = "yarn build"
publish = "build"
functions = "server/lambda"
[build.environment]
NODE_VERSION = "16.13.2"
# Site info, used for the 1-Click deploy page
[template.environment]
STATUSKIT_PAGE_TITLE = "Web Check"
STATUSKIT_COMPANY_LOGO = "https://raw.githubusercontent.com/Lissy93/web-check/master/public/apple-touch-icon.png"
STATUSKIT_SUPPORT_CONTACT_LINK = "https://github.com/lissy93/web-check"
# Redirect the Node endpoints to serverless functions
[[redirects]]
from = "/api"
to = "/.netlify/functions/web-check"
status = 301
force = true
[[redirects]]
from = "/find-url-ip"
to = "/.netlify/functions/find-url-ip"
status = 301
force = true
[[redirects]]
from = "/lighthouse-report"
to = "/.netlify/functions/lighthouse-report"
status = 301
force = true
[[redirects]]
from = "/ssl-check"
to = "/.netlify/functions/ssl-check"
status = 301
force = true
[[redirects]]
from = "/get-headers"
to = "/.netlify/functions/get-headers"
status = 301
force = true
[[redirects]]
from = "/get-cookies"
to = "/.netlify/functions/get-cookies"
status = 301
force = true
[[redirects]]
from = "/get-dns"
to = "/.netlify/functions/get-dns"
status = 301
force = true
[[redirects]]
from = "/read-robots-txt"
to = "/.netlify/functions/read-robots-txt"
status = 301
force = true
# For router history mode, ensure pages land on index
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# Set any security headers here
[[headers]]
for = "/*"
[headers.values]
# Uncomment to enable Netlify user control. Requires premium plan.
# Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"