2021-12-31 23:23:39 +01: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
|
|
|
|
[build]
|
|
|
|
base = "/"
|
|
|
|
command = "yarn build"
|
|
|
|
publish = "dist"
|
|
|
|
functions = "services/serverless-functions"
|
|
|
|
|
2024-03-04 16:13:31 +01:00
|
|
|
# Environmental variables for build command
|
|
|
|
[build.environment]
|
|
|
|
NODE_VERSION = "20.11.1"
|
|
|
|
NODE_OPTIONS = "--openssl-legacy-provider"
|
|
|
|
YARN_FLAGS = "--ignore-engines"
|
2021-12-31 23:23:39 +01: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
|
|
|
|
[[redirects]]
|
|
|
|
from = "/cors-proxy"
|
|
|
|
to = "/.netlify/functions/netlify-cors"
|
|
|
|
status = 301
|
|
|
|
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]
|
2022-02-04 23:42:19 +01:00
|
|
|
# Uncomment to enable Netlify user control. Requires premium plan.
|
2021-12-31 23:23:39 +01:00
|
|
|
# Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"
|
|
|
|
|