Skip to content

Commit

Permalink
🔧 Support history-mode routing on Netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Oct 16, 2021
1 parent b9b9c30 commit 8c3a8e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8c3a8e9

Please sign in to comment.