Skip to content

Commit 1ce0af9

Browse files
committed
Bump Node to 24; pin webworkify-webpack
Update Node.js version from 22 to 24 in ct/dispatcharr.sh and install/dispatcharr-install.sh. Add a package.json override to force webworkify-webpack@2.1.3 and remove package-lock.json before running npm install during the frontend build to avoid dependency/lock conflicts and ensure a successful build.
1 parent 8879b8e commit 1ce0af9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

ct/dispatcharr.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function update_script() {
3030
fi
3131

3232
setup_uv
33-
NODE_VERSION="22" setup_nodejs
33+
NODE_VERSION="24" setup_nodejs
3434

3535
# Fix for nginx not allowing large files
3636
if ! grep -q "client_max_body_size 100M;" /etc/nginx/sites-available/dispatcharr.conf; then
@@ -110,6 +110,8 @@ function update_script() {
110110

111111
msg_info "Building Frontend"
112112
cd /opt/dispatcharr/frontend
113+
node -e "const p=require('./package.json');p.overrides=p.overrides||{};p.overrides['webworkify-webpack']='2.1.3';require('fs').writeFileSync('package.json',JSON.stringify(p,null,2));"
114+
rm -f package-lock.json
113115
$STD npm install --no-audit --progress=false
114116
$STD npm run build
115117
msg_ok "Built Frontend"

install/dispatcharr-install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $STD apt install -y \
2929
msg_ok "Installed Dependencies"
3030

3131
setup_uv
32-
NODE_VERSION="22" setup_nodejs
32+
NODE_VERSION="24" setup_nodejs
3333
PG_VERSION="16" setup_postgresql
3434
PG_DB_NAME="dispatcharr_db" PG_DB_USER="dispatcharr_usr" setup_postgresql_db
3535
fetch_and_deploy_gh_release "dispatcharr" "Dispatcharr/Dispatcharr" "tarball"
@@ -66,6 +66,8 @@ CELERY_BROKER_URL=redis://localhost:6379/0
6666
DJANGO_SECRET_KEY=$DJANGO_SECRET
6767
EOF
6868
cd /opt/dispatcharr/frontend
69+
node -e "const p=require('./package.json');p.overrides=p.overrides||{};p.overrides['webworkify-webpack']='2.1.3';require('fs').writeFileSync('package.json',JSON.stringify(p,null,2));"
70+
rm -f package-lock.json
6971
$STD npm install --no-audit --progress=false
7072
$STD npm run build
7173
msg_ok "Configured Dispatcharr"

0 commit comments

Comments
 (0)