New issue
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
[nextjs] v7.29.0 breaks reading next.config.js resulting into missing runtimeConfig #6691
Comments
Please wrap the exported function with const { withSentryConfig } = require('@sentry/nextjs')
// see https://nextjs.org/docs/api-reference/next.config.js/introduction
module.exports = withSentryConfig((phase, { defaultConfig }) => {
/**
* @type {import('next').NextConfig}
*/
return nextConfig = {
/* config options here */
}
}) |
@lforst I've tried that out, but |
@vire If you look at the method signature of |
@lforst Ok what you suggest works, but with
|
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.29.0
Framework Version
@sentry/nextjs@7.29.0
Link to Sentry event
No response
Steps to Reproduce
yarn add -D @sentry/nextjs
next.config.js
exporting a function1 .
see warns
Expected Result
the
next.config.js
file should be read as without errorsActual Result
window.NEXT_DATA.runtimeConfig is missing
The text was updated successfully, but these errors were encountered: