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" },