diff --git a/.nvmrc b/.nvmrc index 48b14e6..9075659 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -20.14.0 +20.15.0 diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..509d54b --- /dev/null +++ b/nginx.conf @@ -0,0 +1,9 @@ +server { + listen 80; + server_name frontend; + location / { + # This would be the directory where your React app's static files are stored at + root /usr/share/nginx/html; + try_files $uri /index.html; + } +} diff --git a/package.json b/package.json index f68dc3d..f88e1a2 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "start:dev": "ksv741-react-scripts start --env mode=development", "build:prod": "ksv741-react-scripts build --env mode=production", "analyze:prod": "ksv741-react-scripts build --env mode=production analyze=true", + "watch": "docker run --rm -v ./build:/usr/share/nginx/html -v ./nginx.conf:/etc/nginx/conf.d/default.conf --name react-nginx-app -p 8080:80 nginx:1.27.0", "lint": "eslint src", "test:start": "jest", "test:coverage": "jest --coverage", @@ -14,7 +15,7 @@ "release": "standard-version" }, "engines": { - "node": "=20.11.1" + "node": "20.15.0" }, "private": true, "repository": "git+https://gitlab.com/money-control2/web/frontend.git", diff --git a/public/index.html b/public/index.html index 05e4869..05b6f9c 100644 --- a/public/index.html +++ b/public/index.html @@ -6,7 +6,10 @@ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">