diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000..f1abb4b6f --- /dev/null +++ b/netlify.toml @@ -0,0 +1,19 @@ +# SPDX-FileCopyrightText: the secureCodeBox authors +# +# SPDX-License-Identifier: Apache-2.0 + +# https://docs.netlify.com/build/configure-builds/file-based-configuration/ + +[build] + base = "documentation" + command = "npm install && npm run build" + publish = "build" + functions = "netlify/functions" + +# To make this work we point a DNS A record with name securecodebox.io to the Netlify load balancer (75.2.60.5) +# See https://docs.netlify.com/manage/domains/configure-domains/bring-a-domain-to-netlify/ +[[redirects]] + from = "https://securecodebox.io/*" + to = "https://www.securecodebox.io/:splat" + status = 302 + force = true