2021-08-19 21:13:35 +02:00
|
|
|
# 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
|
2021-06-11 22:28:27 +02:00
|
|
|
[build]
|
2021-08-19 21:41:43 +02:00
|
|
|
base = "/"
|
2021-06-11 22:28:27 +02:00
|
|
|
command = "yarn build"
|
|
|
|
publish = "dist"
|
2021-09-19 14:36:12 +02:00
|
|
|
functions = "services/serverless-functions"
|
2021-06-11 22:28:27 +02:00
|
|
|
|
2021-08-19 21:13:35 +02:00
|
|
|
# Site info, used for the 1-Click deploy page
|
2021-06-11 22:28:27 +02:00
|
|
|
[template.environment]
|
|
|
|
STATUSKIT_PAGE_TITLE = "Dashy"
|
|
|
|
STATUSKIT_COMPANY_LOGO = "https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/logo.png"
|
2021-09-19 14:36:12 +02:00
|
|
|
STATUSKIT_SUPPORT_CONTACT_LINK = "https://github.com/lissy93/dashy"
|
|
|
|
STATUSKIT_RESOURCES_LINK = "https://dashy.to/docs"
|
2021-09-18 22:54:38 +02:00
|
|
|
|
2021-09-19 14:36:12 +02:00
|
|
|
# Redirect the Node endpoints to serverless functions
|
|
|
|
[[redirects]]
|
|
|
|
from = "/status-check"
|
|
|
|
to = "/.netlify/functions/cloud-status-check"
|
|
|
|
status = 301
|
|
|
|
force = true
|
|
|
|
[[redirects]]
|
|
|
|
from = "/config-manager/*"
|
|
|
|
to = "/.netlify/functions/not-supported"
|
|
|
|
status = 301
|
|
|
|
force = true
|
2021-11-07 15:53:56 +01:00
|
|
|
|
|
|
|
# For router history mode, ensure pages land on index
|
|
|
|
[[redirects]]
|
|
|
|
from = "/*"
|
|
|
|
to = "/index.html"
|
|
|
|
status = 200
|
2021-09-18 22:54:38 +02:00
|
|
|
|
2021-08-19 21:41:43 +02:00
|
|
|
# Set any security headers here
|
|
|
|
[[headers]]
|
|
|
|
for = "/*"
|
|
|
|
[headers.values]
|
|
|
|
# Uncomment to enable Netlify user control. You must have a paid plan.
|
2021-09-19 14:36:12 +02:00
|
|
|
# Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"
|