If you’re generating the PDF with puppeteer, skip the file step entirely! Just grab the buffer from `page.pdf()` and push it straight to Supabase storage.
Code:
```javascript
const pdf = await page.pdf({ format: 'A4' });
await supabase.storage.from('bucket').upload('output.pdf', pdf);
```
No temp files, no fuss. Works every time for me.
Code:
```javascript
const pdf = await page.pdf({ format: 'A4' });
await supabase.storage.from('bucket').upload('output.pdf', pdf);
```
No temp files, no fuss. Works every time for me.
