-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
32 lines (25 loc) · 1.08 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
[build]
publish = "public"
command = "zola build" # -- restore when back to published version
# command = "curl -sL https://github.com/scouten/zola/releases/download/v0.16.1.es1/zola.tar.gz | tar zxv && chmod +x ./zola && ./zola build"
[build.environment]
ZOLA_VERSION = "0.17.2" # -- restore when back to published version
# The magic for deploying previews of branches.
# We need to override the base url with whatever url Netlify assigns to our
# preview site. We do this using the Netlify environment variable
# `$DEPLOY_PRIME_URL`.
[context.deploy-preview]
command = "zola build --base-url $DEPLOY_PRIME_URL" # -- restore when back to published version
# command = "curl -sL https://github.com/scouten/zola/releases/download/v0.16.1.es1/zola.tar.gz | tar zxv && chmod +x ./zola && ./zola build --base-url $DEPLOY_PRIME_URL"
# Using 302 (temporary) redirects because I might someday
# want to have a separate welcome page. We'll see.
[[redirects]]
from = "/parks/index.html"
to = "/"
status = 302
force = true
[[redirects]]
from = "/parks/*"
to = "/:splat"
status = 302
force = true