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>
17 lines
612 B
Text
17 lines
612 B
Text
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.retry = retry;
|
|
// @ts-expect-error File exists
|
|
const async_retry_1 = __importDefault(require("next/dist/compiled/async-retry"));
|
|
async function retry(fn, retries) {
|
|
return await (0, async_retry_1.default)(fn, {
|
|
retries,
|
|
onRetry(e, attempt) {
|
|
console.error(e.message + `\n\nRetrying ${attempt}/${retries}...`);
|
|
},
|
|
minTimeout: 100,
|
|
});
|
|
}
|