The next-config package is a configuration package for Next.js. It is used to configure the Next.js app and is located in the packages/next-config directory.
The package configures Next.js image optimization to support AVIF and WebP formats. It also sets up remote patterns to allow loading images from Clerk securely (i.e. profile images).
The package includes a fix for OpenTelemetry instrumentation warnings by configuring webpack to ignore warnings from @opentelemetry/instrumentation packages.The configuration can optionally be wrapped with withAnalyzer() to enable bundle analysis capabilities.