Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
10.50.0
Framework Version
Next 16.2.4
Link to Sentry event
No response
Reproduction Example/SDK Setup
Default Sentry setup with Next.js and Turbopack, with SRI enabled.
const nextConfig: NextConfig = {
experimental: {
sri: {
algorithm: "sha384",
},
},
}
Steps to Reproduce
- Create a Next.js App with latest Sentry SDK
- Enable Subresource Integrity (SRI) flag
- Create a production build with interactive elements such as a button or link that redirects to another page and see that the scripts are not loading, because the integrity is invalid. See browser console for details.
Expected Result
Enabling Subresource Integrity (SRI) should work normally with Turbopack.
Actual Result
Scripts are not loaded because the generated script files are modified after the integrity hash was generated.
Additional Context
Last known version to work for me was 10.43.0 after which #19814 was introduced. This is likely a bug introduced by this pull request.
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
10.50.0
Framework Version
Next 16.2.4
Link to Sentry event
No response
Reproduction Example/SDK Setup
Default Sentry setup with Next.js and Turbopack, with SRI enabled.
Steps to Reproduce
Expected Result
Enabling Subresource Integrity (SRI) should work normally with Turbopack.
Actual Result
Scripts are not loaded because the generated script files are modified after the integrity hash was generated.
Additional Context
Last known version to work for me was 10.43.0 after which #19814 was introduced. This is likely a bug introduced by this pull request.
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it.