diff --git a/ct/dispatcharr.sh b/ct/dispatcharr.sh index ec5b79fb3..fcf89f251 100644 --- a/ct/dispatcharr.sh +++ b/ct/dispatcharr.sh @@ -30,7 +30,7 @@ function update_script() { fi setup_uv - NODE_VERSION="22" setup_nodejs + NODE_VERSION="24" setup_nodejs # Fix for nginx not allowing large files if ! grep -q "client_max_body_size 100M;" /etc/nginx/sites-available/dispatcharr.conf; then @@ -110,6 +110,8 @@ function update_script() { msg_info "Building Frontend" cd /opt/dispatcharr/frontend + 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));" + rm -f package-lock.json $STD npm install --no-audit --progress=false $STD npm run build msg_ok "Built Frontend" diff --git a/install/dispatcharr-install.sh b/install/dispatcharr-install.sh index 08437ae91..4b80a0fa8 100644 --- a/install/dispatcharr-install.sh +++ b/install/dispatcharr-install.sh @@ -29,7 +29,7 @@ $STD apt install -y \ msg_ok "Installed Dependencies" setup_uv -NODE_VERSION="22" setup_nodejs +NODE_VERSION="24" setup_nodejs PG_VERSION="16" setup_postgresql PG_DB_NAME="dispatcharr_db" PG_DB_USER="dispatcharr_usr" setup_postgresql_db fetch_and_deploy_gh_release "dispatcharr" "Dispatcharr/Dispatcharr" "tarball" @@ -66,6 +66,8 @@ CELERY_BROKER_URL=redis://localhost:6379/0 DJANGO_SECRET_KEY=$DJANGO_SECRET EOF cd /opt/dispatcharr/frontend +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));" +rm -f package-lock.json $STD npm install --no-audit --progress=false $STD npm run build msg_ok "Configured Dispatcharr"