diff --git a/netlify.toml b/netlify.toml index 11907ec6..7382439c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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 = "*"