Skip to content

Commit

Permalink
add redirect to toml (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
theyokohamalife authored Dec 7, 2023
1 parent ae43ca4 commit a9f9ff0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@
NETLIFY_USE_YARN="true"
YARN_VERSION="3.4.1"

# 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]
[headers.values]
Access-Control-Allow-Origin = "*"

0 comments on commit a9f9ff0

Please sign in to comment.