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>
18 lines
534 B
Text
18 lines
534 B
Text
export const fetch = (...args) => globalThis.fetch(...args);
|
|
export const Headers = globalThis.Headers;
|
|
export const Request = globalThis.Request;
|
|
export const Response = globalThis.Response;
|
|
export const AbortController = globalThis.AbortController;
|
|
export const FetchError = Error;
|
|
export const AbortError = Error;
|
|
const redirectStatus = new Set([
|
|
301,
|
|
302,
|
|
303,
|
|
307,
|
|
308
|
|
]);
|
|
export const isRedirect = (code) => redirectStatus.has(code);
|
|
fetch.Promise = globalThis.Promise;
|
|
fetch.isRedirect = isRedirect;
|
|
export default fetch;
|