Skip to content

Commit

Permalink
Merge pull request #80 from COS301-SE-2024/fix/webpackErrorAndOtherCo…
Browse files Browse the repository at this point in the history
…nsoleErrors

Fix/webpack error and other console errors
  • Loading branch information
JBlixems authored Jul 19, 2024
2 parents d2ff1ee + c36f75c commit 643b71e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
16 changes: 10 additions & 6 deletions CoVAR-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CoVAR-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"next": "14.2.4",
"react": "^18",
"react-dom": "^18",
"recharts": "^2.12.7"
"recharts": "^2.13.0-alpha.4"
},
"devDependencies": {
"@babel/preset-env": "^7.24.7",
Expand Down
7 changes: 7 additions & 0 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ server {
proxy_set_header Connection "Upgrade";
}

location /_next/webpack-hmr {
proxy_pass http://client;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}

location /api {
rewrite /api/(.*) /$1 break;
proxy_pass http://api;
Expand Down

0 comments on commit 643b71e

Please sign in to comment.