silverwolf-x/project / packages /next /src /server /mcp /tools /next-instance-error-state.ts
silverwolf-x's picture
download
raw
677 Bytes
/**
* Global error state for Next.js instance-level errors that are not associated
* with a specific browser session or route. This state is exposed through the MCP server's `get_errors`
* tool as well. This covers the errors that are global to the Next.js instance, such as errors in next.config.js.
*
*
* ## Usage
*
* This state is directly manipulated by various parts of the Next.js dev server:
*
* // Reset the error state
* NextInstanceErrorState.[errorType] = []
*
* // Capture an error for a specific error type
* NextInstanceErrorState.[errorType].push(err)
*
*/
export const NextInstanceErrorState: {
nextConfig: unknown[]
} = {
nextConfig: [],
}

Xet Storage Details

Size:
677 Bytes
·
Xet hash:
eb37a58bceff2790956502feba613b2730a71d688aafa80e46b59b742940b14d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.