-
Notifications
You must be signed in to change notification settings - Fork 33
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
PDF not working #48
Comments
@ajshukury a workaround (with a big side effect) create a separate project JUST for the pdf generating endpoint, then: adding If you have other functions in the same project: Your other functions will be affected as everything will be treated as binary. So if you use this workaround, create a separate Serverless.yml for it (in order to create a separate API Gateway) Something else you should know: once you publish a function with |
it's 2021... Has anyone found a better way of doing this? adding |
split pdf function into its own serverless project.
…On Wed, May 5, 2021 at 11:01 AM JaredAAT ***@***.***> wrote:
adding */* to types will work for PDF.
If you have other functions in the same project: Your other functions will
be affected as everything will be treated as binary.
it's 2021... Has anyone found a better way of doing this? adding */* to
deal with serving PDF content, still massively breaks any other functions
within a serveless.yml file
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMM2WBAXMSCU7S3DFC6YL3TMGBW7ANCNFSM4F6O5MFQ>
.
|
When trying to get PDF, the PDF is coming blank. Tried adding 'application/pdf' in the list of mime types. Any thoughts? Html and CSS and images can be served.
The text was updated successfully, but these errors were encountered: