I am trying to export the gantt in pdf format, but in production it does not work. The production version is a spa in vue 3 built with vite.
The pdf looks like this.
I know that there is this problem here. But i cant make it work. https://github.com/bryntum/pdf-export-server/blob/main/docs/architecture.md
The idea is to host the export server in google cloud run, but it does not work.
Hey pedrol3001,
Sorry for the late reply.
Perhaps this guide could help you https://cloud.google.com/functions/docs/monitoring/logging
What do you see when you cat the file in the logs?
Best regards,
Márcio
The problem is that the pdf export server does not use console.log
so show the errors. So i could not find what was blocking the cloud run to get the styles through the internet (calling my production url).
But i solved the problem copying the styles into the pdf export server and using the -r flag to start it with the folder that i copied (https://bryntum.com/products/gantt/docs/api/Gantt/feature/export/PdfExport). It was kinda hard to understand the logic behind it, but it worked.