Supabase + Puppeteer can be tricky for file uploads. Instead of `uploadFile()`, I used `page.pdf()` to get the buffer and then:
```javascript
const { error } = await supabase
.storage
.from('pdfs')
.upload('doc.pdf', await page.pdf());
```
If you’re still stuck, maybe try logging the error object? Might give you a clue.
```javascript
const { error } = await supabase
.storage
.from('pdfs')
.upload('doc.pdf', await page.pdf());
```
If you’re still stuck, maybe try logging the error object? Might give you a clue.
