silverwolf-x's picture
download
raw
445 Bytes
const symbolError = Symbol.for('NextjsError')
export function getErrorSource(error: Error): 'server' | 'edge-server' | null {
return (error as any)[symbolError] || null
}
export type ErrorSourceType = 'edge-server' | 'server'
export function decorateServerError(error: Error, type: ErrorSourceType) {
Object.defineProperty(error, symbolError, {
writable: false,
enumerable: false,
configurable: false,
value: type,
})
}

Xet Storage Details

Size:
445 Bytes
·
Xet hash:
2e9e90225688e058d35f35ab04caebbfba3ed38fcfdbdda950afdc5de1076521

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