next.js
56ea9e9c - Add SRI support for Node.js Runtime (#73891)

Commit
1 year ago
Add SRI support for Node.js Runtime (#73891) > [!NOTE] > This PR is best reviewed with hidden whitespace changes. Support for setting [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) attributes on app router scripts was added in https://github.com/vercel/next.js/pull/39729. But this only covered pages using the Edge Runtime. With this PR, we're adding support for app pages using the Node.js Runtime. The only change that's needed for that, and which was probably just an oversight in the original PR, is reading the generated manifest file in `loadComponents`. In a follow-up we should also add support for adding the `integrity` attribute to client component chunks that are injected into the head during server-side rendering, but that needs a change in React first. fixes #66901
Author
Parents
Loading