use qbittorrent host
Some checks failed
ci / test (push) Failing after 6m45s
ci / build (push) Successful in 8m26s

This commit is contained in:
CJ_Clippy 2025-09-27 03:43:46 -08:00
parent d4c541c865
commit d9ebfaedb2
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "futureporn-our",
"private": true,
"version": "2.8.20",
"version": "2.8.21",
"type": "module",
"scripts": {
"dev": "concurrently npm:dev:serve npm:dev:build:server npm:dev:build:client npm:dev:worker npm:dev:compose npm:dev:sftp npm:dev:qbittorrent npm:dev:tailscale",

View File

@ -379,4 +379,5 @@ export class QBittorrentClient {
}
}
export const qbtClient = new QBittorrentClient({});
const opts = env.NODE_ENV === 'production' ? { host: 'qbittorrent' } : { host: 'localhost' }
export const qbtClient = new QBittorrentClient(opts);