From 411cad86ff3b673308074da65c83ac8714b655f6 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Thu, 29 Jun 2023 00:30:46 +0100 Subject: [PATCH] Adds routes for fetchin redirects and TXT records --- netlify.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 47e217f..2f94baa 100644 --- a/netlify.toml +++ b/netlify.toml @@ -6,7 +6,7 @@ functions = "server/lambda" [build.environment] - NODE_VERSION = "16.13.2" + NODE_VERSION = "16.16.0" # Site info, used for the 1-Click deploy page @@ -56,6 +56,16 @@ to = "/.netlify/functions/read-robots-txt" status = 301 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 [[redirects]]