From 049796ccb5f54f862b5b34130147208b84fc9e31 Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Fri, 14 Jan 2022 21:31:15 -0300 Subject: [PATCH] Netlify fix --- netlify.toml | 4 ++++ package.json | 2 +- public/_redirects | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 netlify.toml create mode 100644 public/_redirects diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..ff1c050 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,4 @@ +[[redirects]] + from = "/*" + to = "/index.html" + status = 200 \ No newline at end of file diff --git a/package.json b/package.json index 2141e68..853a857 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "scripts": { "start": "react-scripts start", - "build": "react-scripts build", + "build": "react-scripts build && echo '/* /index.html 200' | cat >build/_redirects", "test": "react-scripts test", "eject": "react-scripts eject" }, diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 0000000..78f7f20 --- /dev/null +++ b/public/_redirects @@ -0,0 +1 @@ +/* /index.html 200 \ No newline at end of file