Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

✨ Upgrades Netlify to Node 24

Alicia Sykesc1ee13485549
diff --git a/netlify.toml b/netlify.toml
index f40d052f..09106843 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -11,32 +11,42 @@
# Environmental variables for build command
[build.environment]
- NODE_VERSION = "20.11.1"
+ NODE_VERSION = "24"
- YARN_FLAGS = "--ignore-engines"
-
-# Redirect the Node endpoints to serverless functions
+# Rewrite Node endpoints to serverless functions
[[redirects]]
from = "/status-check"
to = "/.netlify/functions/cloud-status-check"
- status = 301
+ status = 200
force = true
+[[redirects]]
+ from = "/cors-proxy"
+ to = "/.netlify/functions/netlify-cors"
+ status = 200
+ force = true
+
+# Dashy's other node endpoints aren't supported on Netlify
[[redirects]]
from = "/config-manager/*"
to = "/.netlify/functions/not-supported"
- status = 301
+ status = 200
force = true
[[redirects]]
- from = "/cors-proxy"
- to = "/.netlify/functions/netlify-cors"
- status = 301
+ from = "/system-info"
+ to = "/.netlify/functions/not-supported"
+ status = 200
force = true
-
+[[redirects]]
+ from = "/get-user"
+ to = "/.netlify/functions/not-supported"
+ status = 200
+ force = true
+
# For router history mode, ensure pages land on index
[[redirects]]
from = "/*"
to = "/index.html"
- status = 200
+ status = 200
# Set any security headers here
[[headers]]
@@ -44,4 +54,3 @@
[headers.values]
# Uncomment to enable Netlify user control. Requires premium plan.
# Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"
-