From c2f99d6d7f2b4368ac5913ed2b08dc203da0df00 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 18 Sep 2021 21:54:38 +0100 Subject: [PATCH] :wrench: Specify edge handlers for redirect to serverless functions --- netlify.toml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 6601257e..fd0b562d 100644 --- a/netlify.toml +++ b/netlify.toml @@ -15,7 +15,18 @@ STATUSKIT_COMPANY_LOGO = "https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/logo.png" STATUSKIT_SUPPORT_CONTACT_LINK = "https://dashy.to" STATUSKIT_RESOURCES_LINK = "https://github.com/Lissy93/dashy/tree/master/docs" - + +# Specify handlers to redirect to serverless functions instead of Node API endpoints +[[edge_handlers]] + path = "/status-check" + handler = "cloud-status-check" +[[edge_handlers]] + path = "/config-manager/save" + handler = "not-supported" +[[edge_handlers]] + path = "/config-manager/rebuild" + handler = "not-supported" + # Set any security headers here [[headers]] for = "/*"