Rocky_Mountain_Vending/.pnpm-store/v10/files/37/51bd9567a2f6c36368a38170495cf2f303a7a02d6976e9eebacb6fed47c99182bac4036ae9501d7be110974007ef0df9be2cb8f435ade154677a473c9aabce
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

16 lines
719 B
Text

/** Build a full URL from request options. */
function getRequestUrl(requestOptions) {
const protocol = requestOptions.protocol || '';
const hostname = requestOptions.hostname || requestOptions.host || '';
// Don't log standard :80 (http) and :443 (https) ports to reduce the noise
// Also don't add port if the hostname already includes a port
const port =
!requestOptions.port || requestOptions.port === 80 || requestOptions.port === 443 || /^(.*):(\d+)$/.test(hostname)
? ''
: `:${requestOptions.port}`;
const path = requestOptions.path ? requestOptions.path : '/';
return `${protocol}//${hostname}${port}${path}`;
}
export { getRequestUrl };
//# sourceMappingURL=getRequestUrl.js.map