mirror of
https://github.com/Lissy93/web-check.git
synced 2025-05-30 23:15:45 +02:00
Adds routes for fetchin redirects and TXT records
This commit is contained in:
parent
ccf69fb9f5
commit
411cad86ff
12
netlify.toml
12
netlify.toml
@ -6,7 +6,7 @@
|
|||||||
functions = "server/lambda"
|
functions = "server/lambda"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
NODE_VERSION = "16.13.2"
|
NODE_VERSION = "16.16.0"
|
||||||
|
|
||||||
|
|
||||||
# Site info, used for the 1-Click deploy page
|
# Site info, used for the 1-Click deploy page
|
||||||
@ -56,6 +56,16 @@
|
|||||||
to = "/.netlify/functions/read-robots-txt"
|
to = "/.netlify/functions/read-robots-txt"
|
||||||
status = 301
|
status = 301
|
||||||
force = true
|
force = true
|
||||||
|
[[redirects]]
|
||||||
|
from = "/follow-redirects"
|
||||||
|
to = "/.netlify/functions/follow-redirects"
|
||||||
|
status = 301
|
||||||
|
force = true
|
||||||
|
[[redirects]]
|
||||||
|
from = "/get-txt"
|
||||||
|
to = "/.netlify/functions/get-txt"
|
||||||
|
status = 301
|
||||||
|
force = true
|
||||||
|
|
||||||
# For router history mode, ensure pages land on index
|
# For router history mode, ensure pages land on index
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user