Skip to content

Commit

Permalink
Merge branch 'main' into kalilsn/sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
kalilsn committed Feb 26, 2025
2 parents 91c7dcf + 626e97e commit 0344bb2
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions core/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,22 @@ const nextConfig = {
],
experimental: {
optimizePackageImports: ["@icons-pack/react-simple-icons", "lucide-react"],
webpackBuildWorker: true,
parallelServerBuildTraces: true,
},
// open telemetry cries a lot during build, don't think it's serious
// https://github.com/open-telemetry/opentelemetry-js/issues/4173
// webpack: (config, { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }) => {
// if (isServer) {
// config.ignoreWarnings = [{ module: /opentelemetry/ }];
// }
// return config;
// },
webpack: (config, { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }) => {
if (config.cache && !dev) {
config.cache = Object.freeze({
type: "memory",
});
}
if (isServer) {
config.ignoreWarnings = [{ module: /opentelemetry/ }];
}
return config;
},
};

const modifiedConfig = withPreconstruct(
Expand Down

0 comments on commit 0344bb2

Please sign in to comment.