Rocky_Mountain_Vending/.pnpm-store/v10/files/8a/e982ab8d0b6ce94a9563ed760315e3ff1f76328da8002bb99ab99d93b9983fc723df9852f2734d563e7e8f6dfcbaf6e4db2df25c06c2eadf3b87db410759e5
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

11 lines
No EOL
332 B
Text

import { isIPv6 } from './is-ipv6';
/**
* Formats a hostname so that it is a valid host that can be fetched by wrapping
* IPv6 hosts with brackets.
* @param hostname
* @returns
*/ export function formatHostname(hostname) {
return isIPv6(hostname) ? `[${hostname}]` : hostname;
}
//# sourceMappingURL=format-hostname.js.map