2023-07-22 18:53:33 +02:00
|
|
|
# Build settings and site core config
|
2022-07-09 22:31:28 +02:00
|
|
|
[build]
|
|
|
|
base = "/"
|
|
|
|
command = "yarn build"
|
2023-06-25 16:49:16 +02:00
|
|
|
publish = "build"
|
2023-07-22 18:53:33 +02:00
|
|
|
functions = "api"
|
2022-07-09 22:31:28 +02:00
|
|
|
|
2023-07-08 18:00:49 +02:00
|
|
|
# Environmental variables and optioanl secrets
|
2023-07-22 18:53:33 +02:00
|
|
|
[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
|
2023-07-22 18:53:33 +02:00
|
|
|
# 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
|
|
|
|
2023-07-22 18:53:33 +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
|
|
|
|
2023-07-22 18:53:33 +02:00
|
|
|
# Redirect the /api/* path to the lambda functions
|
2022-07-09 22:31:28 +02:00
|
|
|
[[redirects]]
|
2023-07-22 18:53:33 +02:00
|
|
|
from = "/api/*"
|
|
|
|
to = "/.netlify/functions/:splat"
|
2023-07-22 01:05:38 +02:00
|
|
|
status = 301
|
|
|
|
force = true
|
2023-07-22 16:18:28 +02:00
|
|
|
|
2023-07-23 12:26:27 +02:00
|
|
|
# For router history mode, ensure pages land on index
|
|
|
|
[[redirects]]
|
|
|
|
from = "/*"
|
|
|
|
to = "/index.html"
|
|
|
|
status = 200
|
|
|
|
|
2023-07-22 18:53:33 +02:00
|
|
|
# Plugins
|
2023-07-22 16:18:28 +02:00
|
|
|
[[plugins]]
|
|
|
|
package = "netlify-plugin-chromium"
|
|
|
|
[plugins.inputs]
|
2023-07-22 16:53:36 +02:00
|
|
|
packageManager = "yarn"
|
2023-07-22 16:18:28 +02:00
|
|
|
|
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"
|