
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
next-rsc-error-handler
Advanced tools
Webpack plugin that allow to handle RSC errors on the server side
Webpack plugin that allow to handle RSC errors on the server side.
This plugin does not allow to use dual client and server components
npm i next-rsc-error-handler
import { rscErrorHandler } from "next-rsc-error-handler";
const withRscErrorHandler = rscErrorHandler({
componentName: /^_?[A-Z]/, // optional, defaults to /^[A-Z]/
});
export default withRscErrorHandler({
// next config here
});
global-server-error.js
in your root folder with following content:/** @type {import('next-rsc-error-handler').GlobalServerError} */
export default function onGlobalServerError(err, ctx) {
// handling here
}
Alternatively, you can use global-server-error.ts
with:
import { type GlobalServerErrorContext } from 'next-rsc-error-handler';
export default function onGlobalServerError(err: unknown, ctx: GlobalServerErrorContext) {
// handling here
}
FAQs
Webpack plugin that allow to handle RSC errors on the server side
The npm package next-rsc-error-handler receives a total of 13 weekly downloads. As such, next-rsc-error-handler popularity was classified as not popular.
We found that next-rsc-error-handler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.