Skip to content

Commit 77b0a9d

Browse files
authored
Merge pull request #217 from matalo33/netlify-toml
Set build steps in config
2 parents 0b3ae7a + d66765e commit 77b0a9d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

netlify.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[build]
2+
publish = "exampleSite/public"
3+
command = "hugo -s exampleSite"
4+
5+
[build.environment]
6+
HUGO_THEME = "repo"
7+
HUGO_THEMESDIR = "/opt/build"
8+
HUGO_VERSION = "0.50"
9+
10+
[context.production.environment]
11+
HUGO_BASEURL = "https://learn.netlify.com/"
12+
13+
[context.deploy-preview]
14+
command = "hugo -s exampleSite -b $DEPLOY_PRIME_URL"
15+
16+
[context.deploy-preview.environment]
17+
HUGO_ENABLEGITINFO = "true"
18+
19+
[context.branch-deplpy]
20+
command = "hugo -s exampleSite -b $DEPLOY_PRIME_URL"
21+
22+
[context.branch-deploy.environment]
23+
HUGO_ENABLEGITINFO = "true"
24+

0 commit comments

Comments
 (0)