-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
43 lines (36 loc) · 1.09 KB
/
netlify.toml
File metadata and controls
43 lines (36 loc) · 1.09 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
[build]
command = '''
node build_scripts/generate_qr.js &&
node build_scripts/buildSecureContent.js &&
echo 'PWD:' && pwd &&
echo '--- FUNCTIONS TREE ---' &&
ls -R netlify/functions &&
echo '--- END FUNCTIONS TREE ---' &&
echo 'LS PRIVATE_HTML:' &&
( ls -R private_html || echo 'private_html missing' ) &&
echo '--- COPYING PRIVATE_HTML ---' &&
mkdir -p netlify/functions/private_html &&
cp -a private_html/. netlify/functions/private_html/ &&
echo '--- COPY DONE ---' &&
hugo --gc --minify -b $URL
'''
publish = "public"
[build.environment]
HUGO_VERSION = "0.80.0"
HUGO_ENABLEGITINFO = "true"
[context.production.environment]
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[[headers]]
for = "*.webmanifest"
[headers.values]
Content-Type = "application/manifest+json; charset=UTF-8"
[functions]
directory = "netlify/functions"
included_files = [
"netlify/functions/private_html/**/*",
"netlify/functions/webeditor/**/*"
]