From 68567cc0e11b12e0dc1a382398a8432a4a87e109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Mon, 3 Jul 2023 10:24:48 +0200 Subject: [PATCH] Replace _redirects with netlify.toml config --- _redirects | 1 - netlify.toml | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) delete mode 100644 _redirects create mode 100644 netlify.toml diff --git a/_redirects b/_redirects deleted file mode 100644 index f824337..0000000 --- a/_redirects +++ /dev/null @@ -1 +0,0 @@ -/* /index.html 200 \ No newline at end of file diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..bceb843 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,12 @@ +# example netlify.toml +[build] + command = "vite build" + functions = "netlify/functions" + publish = "dist" + +## Uncomment to use this redirect for Single Page Applications +## Not needed for static site generators. +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 \ No newline at end of file