From 8c3a8e996f6d1a88ad574ef287b9abd92f295c27 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 16 Oct 2021 15:34:16 +0100 Subject: [PATCH] :wrench: Support history-mode routing on Netlify --- netlify.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netlify.toml b/netlify.toml index 79c7438a..d0b60897 100644 --- a/netlify.toml +++ b/netlify.toml @@ -16,6 +16,12 @@ STATUSKIT_SUPPORT_CONTACT_LINK = "https://github.com/lissy93/dashy" STATUSKIT_RESOURCES_LINK = "https://dashy.to/docs" +# For router history mode, ensure pages land on index +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 + # Redirect the Node endpoints to serverless functions [[redirects]] from = "/status-check"