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
333 B
Text
14 lines
No EOL
333 B
Text
/**
|
|
* Cleans a URL by stripping the protocol, host, and search params.
|
|
*
|
|
* @param urlString the url to clean
|
|
* @returns the cleaned url
|
|
*/ export function cleanURL(url) {
|
|
const u = new URL(url);
|
|
u.host = 'localhost:3000';
|
|
u.search = '';
|
|
u.protocol = 'http';
|
|
return u;
|
|
}
|
|
|
|
//# sourceMappingURL=clean-url.js.map |