Skip to content

Commit

Permalink
fix: redirects in netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
wozny1989 committed Sep 19, 2022
1 parent cb4c57f commit ea56385
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/dummy/public/_redirects

This file was deleted.

12 changes: 12 additions & 0 deletions tests/dummy/public/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# The following redirect is intended for use with most SPAs that handle
# routing internally.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200

[[headers]]
# Define which paths this specific [[headers]] block will cover.
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"

0 comments on commit ea56385

Please sign in to comment.