-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
useRuntimeConfig missing when generating PDF serverside #33
Comments
it looks like this access is the problem https://github.com/sidebase/nuxt-pdf/blob/main/src/runtime/server/pdf.ts#L28 |
what is happening witbh thtis, this libary does not work on server side atm? |
it doesnt work here...the PR fixes it |
Hi @digitalkaoz @moshetanzer 👋 I had recently begun rewriting parts of the module to provide a Nuxt wrapper for PDFKit along with some helpers. The current 1.0.0 alpha releases are not to be used in production yet! I am still unsure about the future of this approach, or if we will find a better way to generate PDFs inside Nuxt. In #25 I had outlined some next steps for this module, but am still unsure about how much value they will actually bring. Most of the current server side functionality could be easily added yourself in a project by installing PDFKit and then writing some helper functions. I am still thinking of ways to provide more value, before continuing to push the next release! |
Environment
Reproduction
see below
Describe the bug
when trying to generate a pdf serverside, i get this error (logs section):
the api endpoint looks like this:
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: