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>
10 lines
282 B
Text
10 lines
282 B
Text
import { parseUrl } from "@smithy/url-parser";
|
|
export const toEndpointV1 = (endpoint) => {
|
|
if (typeof endpoint === "object") {
|
|
if ("url" in endpoint) {
|
|
return parseUrl(endpoint.url);
|
|
}
|
|
return endpoint;
|
|
}
|
|
return parseUrl(endpoint);
|
|
};
|