Videos are not playing in after build
Unanswered
Australian Freshwater Crocodile posted this in #help-forum
Australian Freshwater CrocodileOP
After I export, local videos stop working. I placed the videos in public and it works like charm in the dev server but not in the production server.
Am I missing out on something that would allow me to serve videos from my web app?
Am I missing out on something that would allow me to serve videos from my web app?
6 Replies
@Australian Freshwater Crocodile After I export, local videos stop working. I placed the videos in public and it works like charm in the dev server but not in the production server.
Am I missing out on something that would allow me to serve videos from my web app?
Spectacled Caiman
How heavy are the videos? Because if they are too heavy I think vercel might remove them (assuming your hosting on vercel).
Try accessing the file through the url and if it shows up there than the error might be within your code but if file is missing than the issue is that its too heavy.
Try accessing the file through the url and if it shows up there than the error might be within your code but if file is missing than the issue is that its too heavy.
@Spectacled Caiman How heavy are the videos? Because if they are too heavy I think vercel might remove them (assuming your hosting on vercel).
Try accessing the file through the url and if it shows up there than the error might be within your code but if file is missing than the issue is that its too heavy.
Australian Freshwater CrocodileOP
The videos are indeed heavy but I'm running everything on my local machine.
I tried going to the URL of the video itself and it did not run (not-found) but when I stop the production build and run the dev environment it does work when I visit the same exact URL and that's what got me confused.
I tried going to the URL of the video itself and it did not run (not-found) but when I stop the production build and run the dev environment it does work when I visit the same exact URL and that's what got me confused.
@Australian Freshwater Crocodile The videos are indeed heavy but I'm running everything on my local machine.
I tried going to the URL of the video itself and it did not run (not-found) but when I stop the production build and run the dev environment it does work when I visit the same exact URL and that's what got me confused.
Spectacled Caiman
Yeah so thats probably why I think Vercel is removing them. They have an article about it [here](https://vercel.com/guides/how-to-bypass-vercel-body-size-limit-serverless-functions)
yeah so the production url (assuming it looks something like this)
example.com/videos/example.mp4If vercel finds that it over 4.5MB then its just gonna remove them.
Australian Freshwater CrocodileOP
Yes but I'm running everything in my local environment. Does it remove every 4.5MB body size even if I don't push to Vercel?