Skip to content

Commit

Permalink
fix: ignore unneeded Webpack warning (#187)
Browse files Browse the repository at this point in the history
related #125
  • Loading branch information
luwes authored Feb 22, 2024
1 parent f9e180d commit 39e907b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/with-next-video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)\??(?:&?[^=&]*=[^=&]*)*$/,
Expand Down

0 comments on commit 39e907b

Please sign in to comment.