File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change
1
+ serve :
2
+ hugo server \
3
+ --disableFastRender \
4
+ --buildDrafts \
5
+ --buildFuture \
6
+ --ignoreCache
7
+ --printI18nWarnings \
8
+ --printMemoryUsage \
9
+ --printPathWarnings \
10
+ --printUnusedTemplates \
11
+ --templateMetrics \
12
+ --templateMetricsHints \
13
+ --gc
14
+
15
+ production-build :
16
+ git submodule update --init --recursive
17
+ hugo \
18
+ --minify
19
+ npx -y pagefind --site public
20
+
21
+ preview-build :
22
+ git submodule update --init --recursive
23
+ hugo \
24
+ --baseURL $(DEPLOY_PRIME_URL ) \
25
+ --buildDrafts \
26
+ --buildFuture \
27
+ --minify
28
+ npx -y pagefind --site public
Original file line number Diff line number Diff line change
1
+ [build ]
2
+ publish = " public"
3
+ command = " make production-build"
4
+
1
5
[build .environment ]
2
6
NODE_VERSION = " 18.16.1"
3
7
HUGO_VERSION = " 0.115.2"
@@ -6,4 +10,10 @@ HUGO_VERSION = "0.115.2"
6
10
HUGO_ENV = " production"
7
11
8
12
[context .deploy-preview .environment ]
9
- HUGO_ENV = " preview"
13
+ HUGO_ENV = " preview"
14
+
15
+ [context .deploy-preview ]
16
+ command = " make preview-build"
17
+
18
+ [context .branch-deploy ]
19
+ command = " make preview-build"
You can’t perform that action at this time.
0 commit comments