Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
No EOL
534 B
Text
14 lines
No EOL
534 B
Text
const DYNAMIC_ERROR_CODE = 'DYNAMIC_SERVER_USAGE';
|
|
export class DynamicServerError extends Error {
|
|
constructor(description){
|
|
super(`Dynamic server usage: ${description}`), this.description = description, this.digest = DYNAMIC_ERROR_CODE;
|
|
}
|
|
}
|
|
export function isDynamicServerError(err) {
|
|
if (typeof err !== 'object' || err === null || !('digest' in err) || typeof err.digest !== 'string') {
|
|
return false;
|
|
}
|
|
return err.digest === DYNAMIC_ERROR_CODE;
|
|
}
|
|
|
|
//# sourceMappingURL=hooks-server-context.js.map |