fix: pinning CORS to FRONTEND_URL, validate drawing payloads with Zod, staging SQLite imports with integrity checks and atomic swaps in index.ts

This commit is contained in:
Zimeng Xiong
2025-11-22 17:17:50 -08:00
parent b3dbcc2376
commit 5d5e22c8a1
4 changed files with 504 additions and 47 deletions
+3 -1
View File
@@ -17,11 +17,13 @@
"@types/multer": "^2.0.0",
"@types/socket.io": "^3.0.1",
"archiver": "^7.0.1",
"better-sqlite3": "^12.4.6",
"cors": "^2.8.5",
"dotenv": "^17.2.3",
"express": "^5.1.0",
"multer": "^2.0.2",
"socket.io": "^4.8.1"
"socket.io": "^4.8.1",
"zod": "^4.1.12"
},
"devDependencies": {
"@types/cors": "^2.8.19",