2022-07-09 22:31:28 +02:00
|
|
|
# Essential site config
|
|
|
|
[build]
|
|
|
|
base = "/"
|
|
|
|
command = "yarn build"
|
2023-06-25 16:49:16 +02:00
|
|
|
publish = "build"
|
2022-07-09 22:31:28 +02:00
|
|
|
functions = "server/lambda"
|
|
|
|
|
|
|
|
[build.environment]
|
2023-06-29 01:30:46 +02:00
|
|
|
NODE_VERSION = "16.16.0"
|
2022-07-09 22:31:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Site info, used for the 1-Click deploy page
|
|
|
|
[template.environment]
|
2023-06-25 16:49:16 +02:00
|
|
|
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"
|
2022-07-09 22:31:28 +02:00
|
|
|
|
|
|
|
# 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
|
2023-06-18 22:01:13 +02:00
|
|
|
[[redirects]]
|
|
|
|
from = "/lighthouse-report"
|
|
|
|
to = "/.netlify/functions/lighthouse-report"
|
|
|
|
status = 301
|
|
|
|
force = true
|
2023-06-21 00:01:45 +02:00
|
|
|
[[redirects]]
|
|
|
|
from = "/ssl-check"
|
|
|
|
to = "/.netlify/functions/ssl-check"
|
|
|
|
status = 301
|
2023-06-21 15:28:42 +02:00
|
|
|
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
|
2023-06-21 00:01:45 +02:00
|
|
|
force = true
|
2023-06-22 16:24:14 +02:00
|
|
|
[[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
|
2023-06-29 01:30:46 +02:00
|
|
|
[[redirects]]
|
|
|
|
from = "/follow-redirects"
|
|
|
|
to = "/.netlify/functions/follow-redirects"
|
|
|
|
status = 301
|
|
|
|
force = true
|
|
|
|
[[redirects]]
|
|
|
|
from = "/get-txt"
|
|
|
|
to = "/.netlify/functions/get-txt"
|
|
|
|
status = 301
|
2023-06-30 00:40:06 +02:00
|
|
|
force = true
|
|
|
|
[[redirects]]
|
|
|
|
from = "/server-status"
|
|
|
|
to = "/.netlify/functions/server-status"
|
|
|
|
status = 301
|
2023-06-30 02:11:56 +02:00
|
|
|
force = true
|
|
|
|
[[redirects]]
|
|
|
|
from = "/check-ports"
|
|
|
|
to = "/.netlify/functions/check-ports"
|
|
|
|
status = 301
|
2023-06-29 01:30:46 +02:00
|
|
|
force = true
|
2023-07-02 19:03:18 +02:00
|
|
|
[[redirects]]
|
|
|
|
from = "/trace-route"
|
|
|
|
to = "/.netlify/functions/trace-route"
|
|
|
|
status = 301
|
|
|
|
force = true
|
2023-07-07 21:56:58 +02:00
|
|
|
[[redirects]]
|
|
|
|
from = "/get-carbon"
|
|
|
|
to = "/.netlify/functions/get-carbon"
|
|
|
|
status = 301
|
|
|
|
force = true
|
|
|
|
[[redirects]]
|
|
|
|
from = "/site-features"
|
|
|
|
to = "/.netlify/functions/site-features"
|
|
|
|
status = 301
|
|
|
|
force = true
|
|
|
|
[[redirects]]
|
|
|
|
from = "/dns-sec"
|
|
|
|
to = "/.netlify/functions/dns-sec"
|
|
|
|
status = 301
|
|
|
|
force = true
|
2022-07-09 22:31:28 +02:00
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
|
|
|
|
|
|
|
|