rsnext/packages/next/client/components/hooks-server-context.ts
2022-09-25 21:35:05 +02:00

9 lines
243 B
TypeScript

export const DYNAMIC_ERROR_CODE = 'DYNAMIC_SERVER_USAGE'
export class DynamicServerError extends Error {
digest: typeof DYNAMIC_ERROR_CODE = DYNAMIC_ERROR_CODE
constructor(type: string) {
super(`Dynamic server usage: ${type}`)
}
}