-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathnetlify.toml
More file actions
40 lines (31 loc) · 1.16 KB
/
netlify.toml
File metadata and controls
40 lines (31 loc) · 1.16 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
# ==============================
# Netlify build config (MD)
# ==============================
[build]
command = "hugo mod vendor && hugo --gc --minify -b $URL && npx -y pagefind --site 'public'"
publish = "public"
[build.environment]
HUGO_ENV = "production"
HUGO_VERSION = "0.125.0"
NODE_VERSION = "20"
# ---------- Producción ----------
[context.production]
command = "hugo mod vendor && hugo --gc --minify -b $URL && npx -y pagefind --site 'public'"
[context.production.environment]
HUGO_ENV = "production"
HUGO_VERSION = "0.125.0"
NODE_VERSION = "20"
# ---------- Deploy Preview (PRs) ----------
[context.deploy-preview]
command = "hugo mod vendor && hugo --gc --minify --baseURL ${DEPLOY_PRIME_URL}/ && npx -y pagefind --site 'public'"
[context.deploy-preview.environment]
HUGO_ENV = "production"
HUGO_VERSION = "0.125.0"
NODE_VERSION = "20"
# ---------- Branch Deploys ----------
[context.branch-deploy]
command = "hugo mod vendor && hugo --gc --minify --baseURL ${DEPLOY_PRIME_URL}/ && npx -y pagefind --site 'public'"
[context.branch-deploy.environment]
HUGO_ENV = "production"
HUGO_VERSION = "0.125.0"
NODE_VERSION = "20"