forked from OpenZeppelin/docs.openzeppelin.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
35 lines (30 loc) · 899 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
32
33
34
35
[build]
command = "yarn build"
publish = "build/site"
########################
# NOTE ABOUT REDIRECTS #
########################
# Redirects can be added either here or in _redirects. The rules in this file
# will have the lowest priority, not only lower than those seen in _redirects
# but also lower than those added at build time by scripts/latest-redirects.js.
# If in doubt, use _redirects.
# This replaces the meta refresh with an HTTP refresh that doesn't have an
# index.html suffix
[[redirects]]
from = "/"
to = "/openzeppelin"
status = 302
force = true
# The Starter Kit component used to have version 2.3 before it was made versionless.
[[redirects]]
from = "/starter-kits/2.3/*"
to = "/starter-kits/:splat"
status = 302
[[redirects]]
from = "/sdk/2.5/*"
to = "/sdk/:splat"
status = 302
[[redirects]]
from = "/sdk/2.6/*"
to = "/sdk/:splat"
status = 302