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>
23 lines
No EOL
651 B
Text
23 lines
No EOL
651 B
Text
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "getHostname", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return getHostname;
|
|
}
|
|
});
|
|
function getHostname(parsed, headers) {
|
|
// Get the hostname from the headers if it exists, otherwise use the parsed
|
|
// hostname.
|
|
let hostname;
|
|
if (headers?.host && !Array.isArray(headers.host)) {
|
|
hostname = headers.host.toString().split(':', 1)[0];
|
|
} else if (parsed.hostname) {
|
|
hostname = parsed.hostname;
|
|
} else return;
|
|
return hostname.toLowerCase();
|
|
}
|
|
|
|
//# sourceMappingURL=get-hostname.js.map |