From 5b2b054917af72478add2a50bda327b8daebcb69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Wo=C5=BAny?= Date: Thu, 22 Sep 2022 18:50:55 +0200 Subject: [PATCH] fix: redirects in netlify (#1544) --- tests/dummy/public/_redirects | 1 - tests/dummy/public/netlify.toml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) delete mode 100644 tests/dummy/public/_redirects create mode 100644 tests/dummy/public/netlify.toml diff --git a/tests/dummy/public/_redirects b/tests/dummy/public/_redirects deleted file mode 100644 index 9733ef366..000000000 --- a/tests/dummy/public/_redirects +++ /dev/null @@ -1 +0,0 @@ -/* /_empty.html 200 diff --git a/tests/dummy/public/netlify.toml b/tests/dummy/public/netlify.toml new file mode 100644 index 000000000..5136b322c --- /dev/null +++ b/tests/dummy/public/netlify.toml @@ -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 = "*"