forked from andreamussap/improve-the-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
98 lines (81 loc) · 2.74 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Hugo build configuration for Netlify
# (https://gohugo.io/hosting-and-deployment/hosting-on-netlify/#configure-hugo-version-in-netlify)
# Default build settings
[build]
publish = "public"
command = "cd themes/docsy && git submodule update -f --init && cd ../.. && hugo"
# "production" environment specific build settings
[build.environment]
HUGO_VERSION = "0.66.0"
[context.production.environment]
HUGO_ENV = "production"
[context.deploy-preview]
command = "cd themes/docsy && git submodule update -f --init && cd ../.. && hugo -b $DEPLOY_PRIME_URL"
[context.develop]
command = "cd themes/docsy && git submodule update -f --init && cd ../.. && hugo -b $DEPLOY_PRIME_URL"
[dev]
targetPort = 1313
port = 1314
[[redirects]]
from = "/docs/shared_services/*"
to = "https://amplifysharedservices-open-docs.netlify.app/docs/shared_services/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
[[redirects]]
from = "/admin/#/edit/shared_services/*"
to = "https://amplifysharedservices-open-docs.netlify.app/admin/#/edit/shared_services/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
[[redirects]]
from = "/admin/#/edit/supportapi/*"
to = "https://amplifysharedservices-open-docs.netlify.app/admin/#/edit/supportapi/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
[[redirects]]
from = "/admin/#/edit/methods/*"
to = "https://amplifysharedservices-open-docs.netlify.app/admin/#/edit/methods/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
[[redirects]]
from = "/admin/#/edit/formats/*"
to = "https://amplifysharedservices-open-docs.netlify.app/admin/#/edit/formats/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
[[redirects]]
from = "/docs/streams/*"
to = "https://amplifystreams-open-docs.netlify.app/docs/streams/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
# for images
[[redirects]]
from = "/Images/streams/*"
to = "https://amplifystreams-open-docs.netlify.app/Images/streams/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
# for editing on Netlify CMS main page
[[redirects]]
from = "/admin/#/edit/streams/*"
to = "https://amplifystreams-open-docs.netlify.app/admin/#/edit/amplifystreams/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
# for each collection
[[redirects]]
from = "/admin/#/edit/publishers/*"
to = "https://amplifystreams-open-docs.netlify.app/admin/#/edit/publishers/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
[[redirects]]
from = "/admin/#/edit/subscribers/*"
to = "https://amplifystreams-open-docs.netlify.app/admin/#/edit/subscribers/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}