NEXTJS_NO_SELF_HOSTED_VIDEOS

Prevent video files from being added to Next.js applications.
Table of Contents

Video files, which are typically large, can consume a lot of bandwidth for your Next.js application. Video files are better served from a dedicated video CDN that is optimized for serving videos.

Vercel Blob can be used for storing and serving large files such as videos.

You can use either server uploads or client uploads depending on the file size:

  • Server uploads are suitable for files up to 4.5 MB
  • Client uploads allow for uploading larger files directly from the browser to Vercel Blob, supporting files up to 5 TB (5,000 GB)

See the best practices for hosting videos on Vercel guide to learn more about various other options for hosting videos.

Last updated on July 23, 2024