Skip to content

Commit

Permalink
pdf: wait for network idle
Browse files Browse the repository at this point in the history
  • Loading branch information
genox committed Nov 27, 2024
1 parent 17c70ca commit 1c65004
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 102 deletions.
3 changes: 1 addition & 2 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
MP_SMTP_AUTH_ALLOW_INSECURE: 1

gotenberg:
image: gotenberg/gotenberg:8.10
image: gotenberg/gotenberg:8.14
container_name: gotenberg
command:
- "gotenberg"
Expand All @@ -62,7 +62,6 @@ services:
- "--prometheus-disable-collect=true"
- "--webhook-disable=true"
- "--pdfengines-disable-routes=true"
- "--pdfengines-engines="
environment:
- "TZ=Europe/Zurich"
ports:
Expand Down
142 changes: 57 additions & 85 deletions src/app/(payload)/admin/importMap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions src/app/my-route/route.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/payload/plugins/cv-pdf-generator/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const requestHandler = async ({ id, locale, exportOverride }: Props) => {
if (process.env.NODE_ENV !== 'production') console.log({ url });
return urlConverter.convert({
url,
waitDelay: '0.2s',
skipNetworkIdleEvent: false,
properties: {
size: {
width: 8.267716535,
Expand Down

0 comments on commit 1c65004

Please sign in to comment.