-
Notifications
You must be signed in to change notification settings - Fork 110
/
netlify.toml
43 lines (35 loc) · 1.18 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
[build]
# assuming the Zola site is in a docs folder, if it isn't you don't need
# to have a `base` variable but you do need the `publish` and `command`
base = "packages/website"
publish = "packages/website/public"
command = "zola build"
[build.environment]
# Set the version name that you want to use and Netlify will automatically use it
ZOLA_VERSION = "0.12.2"
# 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"
[[redirects]]
from = "/builder"
to = "https://labjs.felixhenninger.com/"
status = 302
[[redirects]]
from = "/builder/beta"
to = "https://labjs-beta.netlify.app/"
status = 302
[[redirects]]
from = "/docs/*"
to = "https://labjs.readthedocs.io/:splat"
status = 302
[[redirects]]
from = "/static/stable/*"
to = "https://labjs.felixhenninger.com/api/_defaultStatic/lib/:splat"
status = 302
[[redirects]]
from = "/static/development/*"
to = "https://labjs-beta.netlify.app/api/_defaultStatic/lib/:splat"
status = 302