added nginx config and updated react-scripts

This commit is contained in:
2022-12-22 23:52:50 -03:00
parent 8c2251753d
commit 7c108fac36
2 changed files with 11 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}

View File

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