web-check/netlify.toml

46 lines
1.4 KiB
TOML
Raw Normal View History

# Build settings and site core config
2022-07-09 22:31:28 +02:00
[build]
base = "/"
command = "yarn build"
publish = "build"
functions = "api"
2022-07-09 22:31:28 +02:00
2023-07-08 18:00:49 +02:00
# Environmental variables and optioanl secrets
[build.environment]
# Build configuration env vars (uncomment if you want to conigure these)
2023-07-22 20:35:16 +02:00
# CI="false" # Set CI to false, to prevent warnings from exiting the build
# CHROME_PATH='/usr/bin/chromium' # Path to Chromium binary
# NODE_VERSION = "16.16.0" # Set the version of Node.js to use
2022-07-09 22:31:28 +02:00
# Optional secrets and API keys (uncomment if you want to add these)
# GOOGLE_CLOUD_API_KEY='' # Google Cloud API key, for running Lighthouse scans
# BUILT_WITH_API_KEY='' # BuiltWith API key, for detecting site features
# REACT_APP_SHODAN_API_KEY='' # Shodan API key, for using Shodan scan API
# REACT_APP_WHO_API_KEY='' # WhoAPI key, for iniiating client-side whois lookup
2022-07-09 22:31:28 +02:00
# Redirect the /api/* path to the lambda functions
2022-07-09 22:31:28 +02:00
[[redirects]]
from = "/api/*"
to = "/.netlify/functions/:splat"
2023-07-22 01:05:38 +02:00
status = 301
force = true
2023-07-23 12:26:27 +02:00
# For router history mode, ensure pages land on index
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
# Plugins
[[plugins]]
package = "netlify-plugin-chromium"
[plugins.inputs]
packageManager = "yarn"
2022-07-09 22:31:28 +02:00
# Set any security headers here
[[headers]]
for = "/*"
[headers.values]
# Uncomment to enable Netlify user control. Requires premium plan.
# Basic-Auth = "someuser:somepassword anotheruser:anotherpassword"