Remove unused puppeteer dependency
Deploy / deploy (push) Successful in 4m37s

puppeteer was declared in package.json but never imported anywhere in
the codebase -- PDF generation goes through @react-pdf/renderer. Its
postinstall step downloaded a ~150-200MB Chrome build on every clean
`npm ci`, which exhausted the disk on the deploy host and failed the
build with ENOSPC.

That download was wasted work even when it succeeded: the runner stage
never copies /root/.cache/puppeteer out of the builder, so the browser
was discarded when the builder stage ended.

Also drops 633 lines of transitive dependencies from the lockfile.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
twotalesanimation
2026-08-21 14:12:20 +02:00
parent 9496c70155
commit 6cc4751c9f
2 changed files with 2 additions and 634 deletions
-1
View File
@@ -39,7 +39,6 @@
"next-auth": "^4.24.14",
"next-themes": "^0.4.6",
"pg": "^8.20.0",
"puppeteer": "^24.43.1",
"react": "19.2.4",
"react-day-picker": "^10.0.0",
"react-dom": "19.2.4",