From 4723dcbc81064f61d80baa03139a0a7b848a7a4c Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Tue, 14 Apr 2026 19:51:59 +0200 Subject: [PATCH] fix(papermark): patch invalid next.config has item before build Papermark v0.22.0 has an invalid has:{type:'host'} without a value in next.config, causing next build to fail. Patch it to add value. --- install/papermark-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/papermark-install.sh b/install/papermark-install.sh index 50d29abd..58fdfec4 100644 --- a/install/papermark-install.sh +++ b/install/papermark-install.sh @@ -34,6 +34,7 @@ EOF $STD npm install $STD npx prisma generate $STD npx prisma migrate deploy +sed -i -E 's/\{\s*type:\s*"host"\s*\}/{ type: "host", value: ".*" }/g' /opt/papermark/next.config.* 2>/dev/null || true $STD npm run build msg_ok "Set up Papermark"