Skip to content

Commit 5b2b054

Browse files
authored
fix: redirects in netlify (#1544)
1 parent ac29f10 commit 5b2b054

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

tests/dummy/public/_redirects

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/dummy/public/netlify.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# The following redirect is intended for use with most SPAs that handle
2+
# routing internally.
3+
[[redirects]]
4+
from = "/*"
5+
to = "/index.html"
6+
status = 200
7+
8+
[[headers]]
9+
# Define which paths this specific [[headers]] block will cover.
10+
for = "/*"
11+
[headers.values]
12+
Access-Control-Allow-Origin = "*"

0 commit comments

Comments
 (0)