From deee744dd1e0c1964d4d3c7002285dc45ae21bc7 Mon Sep 17 00:00:00 2001 From: AI Studio Assistant Date: Sat, 9 May 2026 16:17:28 +0000 Subject: [PATCH] build: adiciona regras de spa router para apche, netlify, cloudflare e vercel --- public/.htaccess | 8 ++++++++ public/_redirects | 1 + vercel.json | 8 ++++++++ 3 files changed, 17 insertions(+) create mode 100644 public/.htaccess create mode 100644 public/_redirects create mode 100644 vercel.json diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..4dd8c31 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,8 @@ + + RewriteEngine On + RewriteBase / + RewriteRule ^index\.html$ - [L] + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule . /index.html [L] + diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 0000000..bbb3e7a --- /dev/null +++ b/public/_redirects @@ -0,0 +1 @@ +/* /index.html 200 diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..1323cda --- /dev/null +++ b/vercel.json @@ -0,0 +1,8 @@ +{ + "rewrites": [ + { + "source": "/(.*)", + "destination": "/index.html" + } + ] +}