-
Notifications
You must be signed in to change notification settings - Fork 7
/
netlify.toml
31 lines (28 loc) · 906 Bytes
/
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
[build]
publish = "public/"
# Removing _build-dependency-hl-3.0/ folder because it's just used as source for 'npm run build'
# and other Hugo pages.
command = "hugo && npm run build && npm test && rm -rf public/_build-dependency*"
[build.environment]
HUGO_VERSION = "0.88.1"
NODE_VERSION = "lts/*"
# Skip installing devDependencies
NODE_ENV = "production"
# Skip installing Husky's git hooks
HUSKY = "0"
# Enable SPA functionality for License builder page
# Urls like "/build/hl-bsd-eco", should always
# hit the javascript code which will select proper
# modules to show.
[[redirects]]
from = "/build/hl*"
to = "/build/index.html"
status = 200
force = true
# Proxy requests to on-demand builder so that
# we can return configured license texts for
# markdown and plaintext.
[[redirects]]
from = "/version/3/0/*"
to = "/.netlify/functions/download-license"
status = 200