Rocky_Mountain_Vending/.pnpm-store/v10/files/86/03136c040d544bfa280903dad2bbe1bf69d9259acbe60b0d524290753a15415eedc03756d8bc8d4d074e38846c92d06e17c8875f7cd3ec8ab42597c86230fb
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

14 lines
No EOL
440 B
Text

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = getSubdomain;
/**
* Returns the subdomain of a hostname string
*/
function getSubdomain(hostname, domain) {
// If `hostname` and `domain` are the same, then there is no sub-domain
if (domain.length === hostname.length) {
return '';
}
return hostname.slice(0, -domain.length - 1);
}
//# sourceMappingURL=subdomain.js.map