mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-27 07:34:43 +02:00
🔧 Specify edge handlers for redirect to serverless functions
This commit is contained in:
parent
7e3f42d5c7
commit
c2f99d6d7f
11
netlify.toml
11
netlify.toml
@ -16,6 +16,17 @@
|
||||
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 = "/*"
|
||||
|
Loading…
x
Reference in New Issue
Block a user