mirror of
https://github.com/Lissy93/dashy.git
synced 2024-12-21 07:51:33 +03:00
37 lines
1.2 KiB
TOML
37 lines
1.2 KiB
TOML
# 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"
|
|
|
|
# Site info, used for the 1-Click deploy page
|
|
[template.environment]
|
|
STATUSKIT_PAGE_TITLE = "Dashy"
|
|
STATUSKIT_COMPANY_LOGO = "https://raw.githubusercontent.com/Lissy93/dashy/master/docs/assets/logo.png"
|
|
STATUSKIT_SUPPORT_CONTACT_LINK = "https://github.com/lissy93/dashy"
|
|
STATUSKIT_RESOURCES_LINK = "https://dashy.to/docs"
|
|
|
|
# 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
|
|
|
|
# Set any security headers here
|
|
[[headers]]
|
|
for = "/*"
|
|
[headers.values]
|
|
# Uncomment to enable Netlify user control. You must have a paid plan.
|
|
# Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"
|