use cors locally

This commit is contained in:
StarAppeal
2024-11-22 15:14:03 +01:00
parent c414d10307
commit 73adb48d4f
3 changed files with 68 additions and 1 deletions
+3 -1
View File
@@ -4,7 +4,7 @@
"main": "index.js",
"scripts": {
"start": "node dist/index.js",
"start-local": "tsc && node dist/index.js",
"start-local": "tsc && NODE_ENV=development node dist/index.js",
"clean": "rimraf dist",
"build": "npm run clean & tsc",
"test": "echo \"Error: no test specified, please add them later\""
@@ -18,6 +18,7 @@
"@types/jsonwebtoken": "^9.0.5",
"@types/node": "^20.11.19",
"@types/ws": "^8.5.10",
"cors": "^2.8.5",
"dotenv": "^16.4.4",
"express": "5.0.0",
"jsonwebtoken": "^9.0.2",
@@ -27,6 +28,7 @@
"ws": "8.17.1"
},
"devDependencies": {
"@types/cors": "^2.8.17",
"prettier": "^3.2.5"
}
}