generated from HugoBlox/hugo-theme-developer-portfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
61 lines (52 loc) · 1.76 KB
/
netlify.toml
File metadata and controls
61 lines (52 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[build]
command = """
set -e
echo "=== Starting Blog build process ==="
echo "Node version: $(node --version)"
echo "pnpm version: $(pnpm --version)"
echo "Hugo version: $(hugo version)"
echo "Go version: $(go version || echo 'Go not available')"
echo "=== Installing dependencies ==="
pnpm install --verbose --no-frozen-lockfile
echo "=== Running Hugo build ==="
hugo --gc --minify -b $URL --logLevel debug --printI18nWarnings --printPathWarnings
echo "=== Running Pagefind indexing ==="
pnpm run pagefind
echo "=== Build completed successfully ==="
"""
publish = "public"
[build.environment]
HUGO_VERSION = "0.156.0"
GO_VERSION = "1.21.5"
NODE_VERSION = "22"
# Netlify runs an implicit install step; ensure it never enforces frozen lockfiles
PNPM_FLAGS = "--no-frozen-lockfile"
HUGO_ENABLEGITINFO = "true"
HUGO_LOG_I18N_WARNINGS = "true"
HUGO_LOG_WARNINGS = "true"
FORCE_COLOR = "1"
PNPM_LOG_LEVEL = "debug"
[context.production.environment]
HUGO_ENV = "production"
[context.deploy-preview]
command = """
set -e
echo "=== Deploy Preview Build ==="
echo "Deploy URL: $DEPLOY_PRIME_URL"
pnpm install --verbose --no-frozen-lockfile
hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL --logLevel debug --printI18nWarnings --printPathWarnings
pnpm run pagefind
"""
[context.branch-deploy]
command = """
set -e
echo "=== Branch Deploy Build ==="
echo "Deploy URL: $DEPLOY_PRIME_URL"
pnpm install --verbose --no-frozen-lockfile
hugo --gc --minify -b $DEPLOY_PRIME_URL --logLevel debug --printI18nWarnings --printPathWarnings
pnpm run pagefind
"""
[[plugins]]
package = "netlify-plugin-hugo-cache-resources"
[plugins.inputs]
debug = true