Closed dimasandriano closed 2 weeks ago
@dimasandriano i am using this in a similar way with nextjs on another project. What is bug you are running into?
@shkreios I don't know, maybe I'm not smart enough to try it in nextjs. can i ask for an example of its use in nextjs please?
@dimasandriano here you go https://stackblitz.com/github/shkreios/nextjs-pdf-renderer-web-worker, keep in mind this may not be the best way to do this for your usecase.
The code is mostly identical, the only thing that was vite specific is the import a worker using query-suffix like so import Worker from './workers/pdf.worker?worker'
thank u sir
can i use web worker in nextjs for render pdf with react pdf renderer? I have tried something like this repository but it failed because it uses nextjs.