From 7c108fac36cc7bd9c40500acbd3c740045f1a5a2 Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Thu, 22 Dec 2022 23:52:50 -0300 Subject: [PATCH] added nginx config and updated react-scripts --- docker/nginx/conf.d/default.conf | 9 +++++++++ package.json | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 docker/nginx/conf.d/default.conf diff --git a/docker/nginx/conf.d/default.conf b/docker/nginx/conf.d/default.conf new file mode 100644 index 0000000..7b7cb6c --- /dev/null +++ b/docker/nginx/conf.d/default.conf @@ -0,0 +1,9 @@ +server { + listen 80; + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ /index.html; + } +} \ No newline at end of file diff --git a/package.json b/package.json index ee92b30..29d28d5 100644 --- a/package.json +++ b/package.json @@ -15,13 +15,13 @@ "react-countdown": "^2.3.2", "react-dom": "^17.0.2", "react-router-dom": "^5.3.0", - "react-scripts": "4.0.3", + "react-scripts": "^5.0.1", "react-scroll": "^1.8.4", "web-vitals": "^1.1.2" }, "scripts": { "start": "react-scripts start", - "build": "react-scripts build && echo '/* /index.html 200' | cat >build/_redirects", + "build": "react-scripts build --openssl-legacy-provider && echo '/* /index.html 200' | cat >build/_redirects", "test": "react-scripts test", "eject": "react-scripts eject" },