minor fixes

This commit is contained in:
CanbiZ (MickLesk)
2026-04-17 07:44:01 +02:00
parent bf544e28e5
commit 3aebeb8c8c
4 changed files with 9 additions and 6 deletions

View File

@@ -34,7 +34,9 @@ EOF
$STD npm install
$STD npx prisma generate
$STD npx prisma migrate deploy
node -e "['next.config.js','next.config.mjs','next.config.ts'].forEach(n=>{try{const fp='/opt/papermark/'+n,fs=require('fs');let c=fs.readFileSync(fp,'utf8');c=c.replace(/\{(\s*)type(\s*):(\s*)['\"]host['\"](\s*)\}/g,'{type:\"host\",value:\".*\"}');fs.writeFileSync(fp,c)}catch(e){}})" 2>/dev/null || true
for f in next.config.js next.config.mjs next.config.ts; do
[[ -f "/opt/papermark/$f" ]] && sed -i 's/{"type":"host"}/{"type":"host","value":".*"}/g' "/opt/papermark/$f"
done
$STD npm run build
msg_ok "Set up Papermark"