Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content/manuals/engine/install/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,4 @@ Security reports are greatly appreciated, and Docker will publicly thank you for

After setting up Docker, you can learn the basics with
[Build and share a containerized application](/get-started/tutorials/run-an-app.md).

31 changes: 23 additions & 8 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
# Netlify build configuration
# Ensure Hugo version is pinned and extended edition requested to avoid on-the-fly GitHub downloads

[build]
publish = "public"
publish = "public"
# default build command (will also be used when contexts don't override it)
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL && ./hack/flatten-and-resolve.js && npx pagefind@v1.5.2"

[build.environment]
# Node / npm environment
NODE_VERSION = "24"
NODE_ENV = "production"

# Pin the Hugo version and request the extended binary (avoid downloading from GitHub in build)
HUGO_VERSION = "0.163.0"
HUGO_EXTENDED = "true"
HUGO_ENABLEGITINFO = "true"
HUGO_ENVIRONMENT = "production"

# Exclude large public file from secrets scan (existing setting)
SECRETS_SCAN_OMIT_PATHS = "public/contribute/file-conventions/index.html"

# Deploy preview context keeps the same command but overrides environment where needed
[context.deploy-preview.environment]
NODE_VERSION = "24"
NODE_ENV = "production"
HUGO_VERSION = "0.163.0"
HUGO_ENABLEGITINFO = "true"
HUGO_ENVIRONMENT = "preview"
SECRETS_SCAN_OMIT_PATHS = "public/contribute/file-conventions/index.html"
HUGO_ENVIRONMENT = "preview"

[context.deploy-preview]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL && ./hack/flatten-and-resolve.js && npx pagefind@v1.5.2"
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL && ./hack/flatten-and-resolve.js && npx pagefind@v1.5.2"