mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 08:34:14 +01:00
🔧 Support history-mode routing on Netlify
This commit is contained in:
parent
b9b9c30713
commit
8c3a8e996f
1 changed files with 6 additions and 0 deletions
|
|
@ -16,6 +16,12 @@
|
||||||
STATUSKIT_SUPPORT_CONTACT_LINK = "https://github.com/lissy93/dashy"
|
STATUSKIT_SUPPORT_CONTACT_LINK = "https://github.com/lissy93/dashy"
|
||||||
STATUSKIT_RESOURCES_LINK = "https://dashy.to/docs"
|
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
|
# Redirect the Node endpoints to serverless functions
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/status-check"
|
from = "/status-check"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue