-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor/puppeteer core fix dec11 #114
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe recent updates include an experimental feature in the Next.js configuration to treat "puppeteer-core" as an external package during server-side rendering. Additionally, the service responsible for generating PDFs has been revised to download a newer version of the Chromium package, ensuring compatibility and potentially introducing performance improvements or security patches. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on X ? TipsChat with CodeRabbit Bot (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files ignored due to filter (2)
- package-lock.json
- package.json
Files selected for processing (2)
- next.config.js (1 hunks)
- services/invoice/server/generatePdfService.ts (1 hunks)
Files skipped from review due to trivial changes (1)
- services/invoice/server/generatePdfService.ts
Additional comments: 3
next.config.js (3)
8-10: The addition of the
experimental
configuration withserverComponentsExternalPackages
is correct and aligns with the Next.js configuration pattern. This change will treatpuppeteer-core
as an external package, which is in line with the PR objectives.8-10: Verify that
puppeteer-core
is compatible with being listed as an external package in Next.js server components and that this change does not introduce any unexpected behavior during server-side rendering or in the built output.5-18: Generate a command to verify the changes in
package.json
to ensure thatpuppeteer
has been moved todevDependencies
and@sparticuz/chromium
todependencies
.
The verification of the
package.json
file confirms thatpuppeteer-core
has been correctly added todependencies
and is listed with the intended version^21.5.0
. Additionally,@sparticuz/chromium
is also present independencies
with the updated version^119.0.0
. However,puppeteer
is still listed underdevDependencies
, which is consistent with the PR's objective to move it there.Final review comment:
The changes in
next.config.js
andpackage.json
align with the PR's objectives. Thepuppeteer-core
package is correctly treated as an external package in the Next.js configuration, and thepuppeteer
and@sparticuz/chromium
packages are appropriately placed indevDependencies
anddependencies
, respectively.
Changes
puppeteer-core
version to ^21.5.0. This fixes security issues related to the old puppeteer-core versionpuppeteer
package to devDependencies@sparticuz/chromium
library to dependenciespuppeteer-core
as external in the next configSummary by CodeRabbit
New Features
Bug Fixes