Cry0nicS
Explore posts from serversCSR 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
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 ?1 replies
Basic error page with Typescript and NuxtError
I'm trying to create a basic
error.vue
The main issue is that I can't seem to find a way to set a default statusCode.
Keeps throwing Vue: Object literal may only specify known properties, and statusCode does not exist in type
What's a good way to handle this. so that in the template I can do error.statusCode
and error.message
?1 replies
Pass URL query params to href
I have a button with a link that looks like this
I want to read all the query params from this page and pass them along to this
href
.
I tried something like
However, the URLSearchParams
doesn't take a LocationQuery
(that is being return from route.query
).
What's the best way to sort this out?7 replies