-
Notifications
You must be signed in to change notification settings - Fork 4
/
netlify.toml
48 lines (41 loc) · 1.38 KB
/
netlify.toml
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
[build]
publish = "public"
command = "hugo"
[build.environment]
GO_VERSION = "1.21.11"
HUGO_VERSION = "0.125.7"
# URL: https://kiroule.com/
[context.production.environment]
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
# Algolia index name is needed to execute algolia/run-data-upload-js.sh
ALGOLIA_INDEX_NAME = "prod_kiroule"
[context.production]
command = """
version/update-version.sh && \
hugo --buildFuture && \
algolia/run-data-upload-js.sh -p\
"""
[context.deploy-preview]
command = """
version/update-version.sh && \
hugo --baseURL $DEPLOY_PRIME_URL\
"""
# URL: https://dev--kiroule.netlify.app/
[context.dev.environment]
# Algolia index name is needed to execute algolia/run-data-upload-js.sh
ALGOLIA_INDEX_NAME = "dev_kiroule"
[context.dev]
command = """
version/update-version.sh && \
hugo --environment dev -b $DEPLOY_PRIME_URL --buildFuture && \
algolia/run-data-upload-js.sh -p\
"""
# Use this configuration for specific branch development
# URL: https://<feature-branch>--kiroule.netlify.app/
#[context.<feature-branch>.environment]
# Algolia index name is needed to execute algolia/run-data-upload-js.sh
# ALGOLIA_INDEX_NAME = "<feature-branch>_kiroule"
#
#[context.<feature-branch>]
# command = "hugo --environment <feature-branch> -b $DEPLOY_PRIME_URL && algolia/run-data-upload-js.sh -p -u $DEPLOY_PRIME_URL"