Skip to content

Next images config is not working with sentry version 7.22.0 #6363

Description

@nirmal25990

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which package are you using?

@sentry/nextjs

SDK Version

7.22.0

Framework Version

Next 12.3.1, React: 18.2.0

Link to Sentry event

No response

Steps to Reproduce

My next config is like this.

const nextConfig = {
reactStrictMode: true,
images: {
remotePatterns: [
{
protocol: "https",
hostname: "**",
pathname: "**",
},
],
},
//https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/tree-shaking/#tree-shaking-optional-code
webpack: (config, {webpack}) => {
config.plugins.push(
new webpack.DefinePlugin({
__SENTRY_DEBUG__: false,
__SENTRY_TRACING__: false,
})
);
return config;
},
swcMinify: true,
}
  1. "@sentry/nextjs": "7.21.1" and "@sentry/utils": "7.21.1". It is working fine.
  2. After updating the sentry version to 7.22.0. Getting errors like hostname is not configured under images in your "next.config.js"

Expected Result

It should work fine without any issues.

Actual Result

Getting errors like this.

Screen Shot 2022-12-01 at 3 55 03 PM

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions