From 2dfd041268e205b4a502a2acb0dbf059a9da7259 Mon Sep 17 00:00:00 2001 From: Sven Strittmatter Date: Wed, 8 Apr 2026 17:35:36 +0200 Subject: [PATCH 1/2] Configure Netlify In code Instead Of Web UI This has precedence over the UI configured values. No need to remove them. Signed-off-by: Sven Strittmatter --- netlify.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000..d6f71238f --- /dev/null +++ b/netlify.toml @@ -0,0 +1,12 @@ +# 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" + From cb913ba40715b7fff28ce98a35b95c7b51c15577 Mon Sep 17 00:00:00 2001 From: Sven Strittmatter Date: Wed, 8 Apr 2026 17:36:29 +0200 Subject: [PATCH 2/2] Configure Permanent Redirect for Apex Domain Signed-off-by: Sven Strittmatter --- netlify.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/netlify.toml b/netlify.toml index d6f71238f..f1abb4b6f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -10,3 +10,10 @@ 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