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.
This commit is contained in:
CanbiZ (MickLesk)
2026-04-14 19:51:59 +02:00
parent 5b26bd2f29
commit 4723dcbc81

View File

@@ -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"