-
Notifications
You must be signed in to change notification settings - Fork 717
/
netlify.toml
126 lines (113 loc) · 3.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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[build]
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
publish = "build"
# Default build command
command = "npm install; npm run format; npm run build"
[dev]
# A Boolean value that determines if Netlify Dev launches the local server address in your browser
autoLaunch = true
# Redirects
# Domains
[[redirects]]
from = "https://react-testing-library.com/"
to = "/react/"
force = true
[[redirects]]
from = "https://react-testing-library.com/*"
to = "/:splat"
force = true
[[redirects]]
from = "https://testing-library.netlify.com/*"
to = "/:splat"
force = true
# Shortcut to Discord server invite
[[redirects]]
from = "/discord"
to = "https://discord.gg/testing-library"
# Shortcuts to reproduction templates
[[redirects]]
from = "/new-rtl"
to = "https://stackblitz.com/edit/rtl-template"
[[redirects]]
from = "/new-dtl"
to = "https://stackblitz.com/edit/dtl-template"
[[redirects]]
from = "/new-atl"
to = "https://stackblitz.com/edit/atl-template"
# Support page to help page
[[redirects]]
from = "/support"
to = "/help"
# React Redux recipe to Redux's recipe
[[redirects]]
from = "/docs/example-react-redux"
to = "https://redux.js.org/recipes/writing-tests#connected-components"
# Screen error message to correct page
[[redirects]]
from = "/s/screen-global-error"
to = "/docs/queries/about#screen"
# Obsolete or split pages
[[redirects]]
from = "/docs/guide-using-fake-timers"
to = "/docs/using-fake-timers"
[[redirects]]
from = "/docs/guide-which-query"
to = "/docs/queries/about#priority"
[[redirects]]
from = "/docs/dom-testing-library/api-queries"
to = "/docs/queries/about"
[[redirects]]
from = "/docs/dom-testing-library/api-helpers"
to = "/docs/dom-testing-library/api-accessibility"
[[redirects]]
from = "/docs/ecosystem-user-event"
to = "/docs/user-event/intro"
# Reorganization (do not redirect if route is not 404)
[[redirects]]
from = "/docs/*"
to = "/docs/dom-testing-library/:splat"
# Landing pages
[[redirects]]
from = "/dom/"
to = "/docs/dom-testing-library/intro"
[[redirects]]
from = "/react/"
to = "/docs/react-testing-library/intro"
[[redirects]]
from = "/react-native/"
to = "/docs/react-native-testing-library/intro"
[[redirects]]
from = "/cypress/"
to = "/docs/cypress-testing-library/intro"
[[redirects]]
from = "/vue/"
to = "/docs/vue-testing-library/intro"
[[redirects]]
from = "/angular/"
to = "/docs/angular-testing-library/intro"
[[redirects]]
from = "/pptr/"
to = "/docs/pptr-testing-library/intro"
[[redirects]]
from = "/svelte/"
to = "/docs/svelte-testing-library/intro"
[[redirects]]
from = "/preact/"
to = "/docs/preact-testing-library/intro"
[[redirects]]
from = "/jest-dom/"
to = "/docs/ecosystem-jest-dom"
[[redirects]]
from = "/testcafe/"
to = "/docs/testcafe-testing-library/intro"
[[redirects]]
from = "/nightwatch/"
to = "/docs/nightwatch-testing-library/intro"
[[redirects]]
from = "/user-event/"
to = "/docs/user-event/intro"
[[redirects]]
from = "/solid/"
to = "/docs/solid-testing-library/intro"