Skip to content

Commit

Permalink
fix(next): remove suppression of warning messages
Browse files Browse the repository at this point in the history
Remove the workaround that suppresses warning messages from the output.
  • Loading branch information
sdorra committed Mar 14, 2024
1 parent 037662a commit 4aa2362
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-walls-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@content-collections/next": patch
---

Remove the workaround that suppresses warning messages from the output
9 changes: 0 additions & 9 deletions packages/next/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,6 @@ export function createContentCollectionPlugin(pluginOptions: Options) {
return nextConfig.webpack(config, options);
}

config.infrastructureLogging = {
...config.infrastructureLogging,
// TODO: not the best way to do this, but it works for now.
// Silence warning about dynamic import of next.config file.
// > [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Parsing of /Users/wes/Sites/mux/next-video/dist/config.js for build dependencies failed at 'import(path.resolve("next.config.js"))'.
// > Build dependencies behind this expression are ignored and might cause incorrect cache invalidation.
level: "error",
};

return config;
},
};
Expand Down

0 comments on commit 4aa2362

Please sign in to comment.