All checks were successful
Test Asgard Runner / test (push) Successful in 3s
Frontend uses native WebSocket API, backend was using socket.io which speaks an incompatible protocol. Switched to @nestjs/platform-ws so both sides speak native WebSocket. Also fixed JWT TTL override in docker-compose.yml (was hardcoded to 900s, now 14400s/4h). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
57 lines
1.6 KiB
JSON
57 lines
1.6 KiB
JSON
{
|
|
"name": "corrosion-api",
|
|
"version": "1.0.0",
|
|
"description": "Corrosion Admin Panel — NestJS Backend API",
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "nest build",
|
|
"start": "nest start",
|
|
"start:dev": "nest start --watch",
|
|
"start:debug": "nest start --debug --watch",
|
|
"start:prod": "node dist/main",
|
|
"lint": "eslint \"{src,test}/**/*.ts\" --fix",
|
|
"format": "prettier --write \"src/**/*.ts\""
|
|
},
|
|
"dependencies": {
|
|
"@nestjs/common": "^10.4.0",
|
|
"@nestjs/config": "^3.2.0",
|
|
"@nestjs/core": "^10.4.0",
|
|
"@nestjs/jwt": "^10.2.0",
|
|
"@nestjs/microservices": "^10.4.0",
|
|
"@nestjs/passport": "^10.0.3",
|
|
"@nestjs/platform-express": "^10.4.0",
|
|
"@nestjs/platform-ws": "^10.4.22",
|
|
"@nestjs/schedule": "^4.0.0",
|
|
"@nestjs/swagger": "^7.3.0",
|
|
"@nestjs/typeorm": "^10.0.2",
|
|
"@nestjs/websockets": "^10.4.0",
|
|
"argon2": "^0.40.0",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.14.1",
|
|
"nats": "^2.19.0",
|
|
"otpauth": "^9.2.0",
|
|
"passport": "^0.7.0",
|
|
"passport-jwt": "^4.0.1",
|
|
"pg": "^8.12.0",
|
|
"qrcode": "^1.5.3",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rxjs": "^7.8.1",
|
|
"swagger-ui-express": "^5.0.0",
|
|
"typeorm": "^0.3.20",
|
|
"uuid": "^9.0.0",
|
|
"ws": "^8.19.0"
|
|
},
|
|
"devDependencies": {
|
|
"@nestjs/cli": "^10.4.0",
|
|
"@nestjs/schematics": "^10.1.0",
|
|
"@types/express": "^4.17.21",
|
|
"@types/multer": "^2.0.0",
|
|
"@types/node": "^20.12.0",
|
|
"@types/passport-jwt": "^4.0.1",
|
|
"@types/qrcode": "^1.5.5",
|
|
"@types/uuid": "^9.0.8",
|
|
"@types/ws": "^8.18.1",
|
|
"typescript": "^5.4.0"
|
|
}
|
|
}
|