N
Nuxt5mo ago
Cry0nicS

CSR not working on Vercel

I migrated from Firesbase hosting to Vercel. But my project deals with large files (15-20MB per file) and Vercel has a limit of <5MB per file for SSR. However, for client-side rendering it should be no upload limit. (#3 https://vercel.com/docs/errors/FUNCTION_PAYLOAD_TOO_LARGE) So, initially I tried to set route rules for my upload page so be ssr: false. Like
routeRules: {
"/services/upload": {ssr: false},
}
routeRules: {
"/services/upload": {ssr: false},
}
This didn't seem to work, so I set the entire project ssr: false - and after deployment ... It still throws FUNCTION_PAYLOAD_TOO_LARGE Important to know: the files are being sent to an API (hosted on firebase) that stores the data in Firebase. Only the Nuxt3 (front-end) is hosted on Vercel Any suggestions or ideas ?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server