-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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,
}
"@sentry/nextjs": "7.21.1"and"@sentry/utils": "7.21.1". It is working fine.- 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.
Metadata
Metadata
Assignees
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
