Skip to content

Commit e322fb2

Browse files
author
Kent C. Dodds
authored
add redirects for fallback and jest-dom
1 parent 778fd9b commit e322fb2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

netlify.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,16 @@
9292
status = 301
9393
force = true
9494

95+
# jest-dom landing page to home page
96+
[[redirects]]
97+
from = "https://testing-library.com/jest-dom/"
98+
to = "https://testing-library.com/docs/ecosystem-jest-dom"
99+
status = 301
100+
force = true
95101

102+
# Fallback (THIS SHOULD BE LAST)
103+
[[redirects]]
104+
from = "/*"
105+
to = "/index.html"
106+
status = 200
107+
force = true

0 commit comments

Comments
 (0)