- Create apps/nextjs/server.ts custom server integrating WebSocket via ws - Update nextjs scripts to use custom server for dev and start - Update root start script to remove separate ws server process - Update client tRPC URL to connect to port 3000 in dev - Update nginx.conf to route /websockets to port 3000 - Update Dockerfile and run.sh for integrated server - Disable standalone ws server dev script - Add benchmark-memory.sh script Co-authored-by: ajnart <49837342+ajnart@users.noreply.github.com>
43 lines
1.5 KiB
JSON
43 lines
1.5 KiB
JSON
{
|
|
"name": "@homarr/websocket",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"license": "Apache-2.0",
|
|
"type": "module",
|
|
"main": "./src/main.ts",
|
|
"types": "./src/main.ts",
|
|
"scripts": {
|
|
"build": "esbuild src/main.ts --bundle --platform=node --outfile=wssServer.cjs --external:bcrypt --external:@opentelemetry/api --external:deasync --external:cpu-features --loader:.html=text --loader:.scss=text --loader:.node=text",
|
|
"clean": "rm -rf .turbo node_modules",
|
|
"dev": "echo 'WebSocket server is now integrated into the Next.js custom server'",
|
|
"format": "prettier --check . --ignore-path ../../.gitignore",
|
|
"lint": "eslint",
|
|
"typecheck": "tsc --noEmit",
|
|
"with-env": "dotenv -e ../../.env --"
|
|
},
|
|
"prettier": "@homarr/prettier-config",
|
|
"dependencies": {
|
|
"@homarr/api": "workspace:^0.1.0",
|
|
"@homarr/auth": "workspace:^0.1.0",
|
|
"@homarr/common": "workspace:^0.1.0",
|
|
"@homarr/core": "workspace:^",
|
|
"@homarr/db": "workspace:^0.1.0",
|
|
"@homarr/definitions": "workspace:^0.1.0",
|
|
"@homarr/redis": "workspace:^0.1.0",
|
|
"@homarr/validation": "workspace:^0.1.0",
|
|
"dotenv": "^17.3.1",
|
|
"tsx": "4.20.4",
|
|
"ws": "^8.19.0"
|
|
},
|
|
"devDependencies": {
|
|
"@homarr/eslint-config": "workspace:^0.2.0",
|
|
"@homarr/prettier-config": "workspace:^0.1.0",
|
|
"@homarr/tsconfig": "workspace:^0.1.0",
|
|
"@types/ws": "^8.18.1",
|
|
"esbuild": "^0.27.3",
|
|
"eslint": "^9.39.3",
|
|
"prettier": "^3.8.1",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|