-
Notifications
You must be signed in to change notification settings - Fork 9
/
netlify.toml
49 lines (39 loc) · 1.56 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
49
#============================================================================
# General Build Configuration
#----------------------------------------------------------------------------
[build]
publish = "public"
#============================================================================
# Deployment Contexts
#
# Learn more: https://docs.netlify.com/configure-builds/file-based-configuration/#deploy-contexts
#----------------------------------------------------------------------------
# Deploys coming from `main`.
[context.production]
command = "zola build && tailwindcss -i styles/main.css -o public/main.css"
environment = {ZOLA_VERSION = "0.13.0"}
# Deploys coming from pull requests.
[context.deploy-preview]
command = "zola build --base-url $DEPLOY_PRIME_URL && tailwindcss -i styles/main.css -o public/main.css"
environment = {ZOLA_VERSION = "0.13.0"}
# Deploys coming from branches other than `main`.
[context.branch-deploy]
command = "zola build --base-url $DEPLOY_PRIME_URL && tailwindcss -i styles/main.css -o public/main.css"
environment = {ZOLA_VERSION = "0.13.0"}
#============================================================================
# Redirects
#----------------------------------------------------------------------------
[[redirects]]
from = "/community"
to = "/contribute"
[[redirects]]
from = "/glossary/git/#git-ref"
to = "/glossary/git/#git-object-id-gitoid"
[[redirects]]
from = "/glossary/git/#git-ref"
to = "/glossary/git/#git-object-id-gitoid"
[[redirects]]
from = "https://gitbom.dev/*"
to = "https://omnibor.io/:splat"
status = 301
force = true