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>
16 lines
499 B
Text
16 lines
499 B
Text
/* IMPORT */
|
|
import process from 'node:process';
|
|
import Handlers from './handlers.js';
|
|
/* MAIN */
|
|
const ATTEMPTIFY_CHANGE_ERROR_OPTIONS = {
|
|
onError: Handlers.onChangeError
|
|
};
|
|
const ATTEMPTIFY_NOOP_OPTIONS = {
|
|
onError: () => undefined
|
|
};
|
|
const IS_USER_ROOT = (process.getuid ? !process.getuid() : false);
|
|
const RETRYIFY_OPTIONS = {
|
|
isRetriable: Handlers.isRetriableError
|
|
};
|
|
/* EXPORT */
|
|
export { ATTEMPTIFY_CHANGE_ERROR_OPTIONS, ATTEMPTIFY_NOOP_OPTIONS, IS_USER_ROOT, RETRYIFY_OPTIONS };
|