We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hideSourceMaps
next.config.js
Sentry Saas (sentry.io)
@sentry/nextjs
7.7.0
12.2.3
No response
hidden-source-map
const moduleExports = { sentry: { hideSourceMaps: true, }, };
next dev
Run Next.js with Sentry without any warning.
Since the introduction of the next.config.js validation via ajv on version 12.2.3, the following warning is raised.
ajv
warn - Invalid next.config.js options detected: [ { "instancePath": "", "schemaPath": "#/additionalProperties", "keyword": "additionalProperties", "params": { "additionalProperty": "sentry" }, "message": "must NOT have additional properties" } ] See more info here: https://nextjs.org/docs/messages/invalid-next-config
The text was updated successfully, but these errors were encountered:
I've created a PR to fix this
Sorry, something went wrong.
userNextConfig.sentry
fixed in #5473 (release 7.8.0 will follow soon)
Thank you @mitchheddles, @Lms24! The patch works great 👍
productionBrowserSourceMaps: false
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/nextjs
SDK Version
7.7.0
Framework Version
12.2.3
Link to Sentry event
No response
Steps to Reproduce
hidden-source-map
by setting thehideSourceMaps
option innext.config.js
next dev
to start Next.js in development modeExpected Result
Run Next.js with Sentry without any warning.
Actual Result
Since the introduction of the
next.config.js
validation viaajv
on version12.2.3
, the following warning is raised.The text was updated successfully, but these errors were encountered: