Unable to upload files after deploying on vercel
This is how I implemented it but, does not seem to work as I get an error stating that no such file or directory '/vercel'
1 Reply
Vercel doesn't work like this. You cannot use their FS to store something on the server, because all functions are transformed into Lambdas, which die after they are done. So you would be losing your data anyways.
If you want to store files somewhere you need another solution for this. E.g. UploadThing that Theo and crew made, AWS S3, MinIO or w/e else you like