Closed alereca closed 2 months ago
Using digital ocean object store (https://docs.digitalocean.com/products/spaces/) with a cdn in front of it would be the best option to my mind
Render pdf on web app using react-pdf https://codesandbox.io/p/sandbox/displaying-pdf-using-react-5d003?file=%2Fsrc%2Fcomponents%2Fpdf%2Fall-pages.js%3A22%2C7-22%2C15
As nextjs use serverless functions cost might escalate quite easily.
Probably the best option would be to provide files from api server (https://docs.nestjs.com/techniques/streaming-files) o a saas file provider like s3