Vercel deployment with canvas dependency
Unanswered
sergiy.eth posted this in #help-forum
The build fails because it goes beyond 250MB - using react-pdf/renderer on the backend to create invoice PDFs on demand in an API route, any way to optimize? trying to set up
With no success
outputFileTracingExcludes: {
'/api/invoicing/save-invoice': ['node_modules/canvas/build'],
'/api/invoicing/update-invoice': ['node_modules/canvas/build'],
'/api/pdf/generate-receipt': ['node_modules/canvas/build'],
},With no success