Skip to content

Commit 4beb508

Browse files
authored
Centralise env vars into a config file (#1516)
Currently these are manually configured in each site in netlify, which is fiddly to maintain.
1 parent 9961009 commit 4beb508

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tooling/common-config/netlify.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,24 @@
22
ignore = "exit 1" #always build on PR even if you can't detect changes in this folder
33
publish = "public"
44
command = "./deploy-netlify.sh"
5+
6+
[build.environment]
7+
GO_VERSION = "1.21.3"
8+
HUGO_VERSION = "0.136.3"
9+
NODE_VERSION = "20"
10+
NPM_FLAGS = "--legacy-peer-deps"
11+
12+
513
[dev]
614
framework = "hugo"
715
targetPort = 3000
816
command = "hugo server -p 3000"
17+
918
[[redirects]]
1019
from = "/api/*"
1120
to = "/.netlify/functions/:splat"
1221
status = 200
22+
1323
[functions]
1424
external_node_modules = ["node-fetch"]
1525

0 commit comments

Comments
 (0)