diff --git a/src/with-next-video.ts b/src/with-next-video.ts index 230584b..79fb90d 100644 --- a/src/with-next-video.ts +++ b/src/with-next-video.ts @@ -60,6 +60,14 @@ export async function withNextVideo(nextConfig: any, videoConfig?: VideoConfig) }, config.externals); } + config.infrastructureLogging = { + ...config.infrastructureLogging, + // Silence warning about dynamic import of next.config file. + // > [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Parsing of /next-video/dist/config.js for build dependencies failed at 'import(fileUrl. + // > Build dependencies behind this expression are ignored and might cause incorrect cache invalidation. + level: 'error', + }; + config.experiments.buildHttp = { allowedUris: [ /https?:\/\/.*\.(mp4|webm|mkv|ogg|ogv|wmv|avi|mov|flv|m4v|3gp)\??(?:&?[^=&]*=[^=&]*)*$/,