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!

1.4 KB
Raw Blame
# Enables you to easily deploy a fork of Dashy to Netlify
# without the need to configure anything in admin UI
# Docs: https://www.netlify.com/docs/netlify-toml-reference/

# Essential site config
[build]
  base = "/"
  command = "yarn build"
  publish = "dist"
  functions = "services/serverless-functions"

# Environmental variables for build command
[build.environment]
  NODE_VERSION = "24"

# Rewrite Node endpoints to serverless functions
[[redirects]]
  from = "/status-check"
  to = "/.netlify/functions/cloud-status-check"
  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 = 200
  force = true
[[redirects]]
  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

# Set any security headers here
[[headers]]
  for = "/*"
  [headers.values]
  # Uncomment to enable Netlify user control. Requires premium plan.
  # Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"