Skip to content

Commit ade5974

Browse files
committed
Fixed broken build and updated npm packages
- Added Volta instructions to have developers use the same Node version as production - Updated npm packages with security issues
1 parent 5511c09 commit ade5974

File tree

5 files changed

+45
-21
lines changed

5 files changed

+45
-21
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@ Clinical, curriculum, and student management application for UC Davis School of
55
## Prerequisites
66

77
- [.NET 7 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/7.0)
8-
- [Node.js v18+](https://nodejs.org/) (v20 recommended)
8+
- [Volta](https://volta.sh/) - Node.js version manager
99
- [Visual Studio 2022](https://visualstudio.microsoft.com/) or [VS Code](https://code.visualstudio.com/)
1010

11+
### Node.js Setup with Volta (Recommended)
12+
13+
This project uses Node.js v20.6.1. We recommend using [Volta](https://volta.sh/) to manage Node.js versions:
14+
15+
**Install Volta on Windows:**
16+
```sh
17+
winget install Volta.Volta
18+
19+
# After installation, restart your terminal and install Node.js 20.6.1
20+
volta install [email protected]
21+
```
22+
1123
## Quick Start
1224

1325
### 1. Setup

VueApp/package-lock.json

Lines changed: 27 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

VueApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"type": "module",
66
"engines": {
7-
"node": ">=18.0.0"
7+
"node": "20.6.1"
88
},
99
"scripts": {
1010
"dev": "vite",

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@
1616
"cross-env": "^10.0.0",
1717
"husky": "^9.1.7",
1818
"lint-staged": "^16.1.2"
19+
},
20+
"volta": {
21+
"node": "20.6.1"
1922
}
2023
}

web/ViteProxyHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public static async Task CopyProxyResponse(HttpContext context, HttpResponseMess
282282
{
283283
try
284284
{
285-
context.Response.Headers.TryAddWithoutValidation(header.Key, header.Value.ToArray());
285+
context.Response.Headers[header.Key] = header.Value.ToArray();
286286
}
287287
catch (Exception headerEx)
288288
{

0 commit comments

Comments
 (0)