UNPKG

@reliverse/rse

Version:

@reliverse/rse is your all-in-one companion for bootstrapping and improving any kind of projects (especially web apps built with frameworks like Next.js) — whether you're kicking off something new or upgrading an existing app. It is also a little AI-power

26 lines (25 loc) 630 B
import { rseOrgBase } from "../../../../../constants.js"; const specialDomains = [ // Vercel domains ".vercel.app", // Local development "localhost", ".local", ".test", // Example/placeholder domains "example.com", // Project specific domains `.${rseOrgBase}`, ".relivator.com", ".bleverse.com" ]; export function isSpecialDomain(d) { return specialDomains.some( (special) => ( // Exact match d === special || // Ends with for TLD/subdomain patterns special.startsWith(".") && d.endsWith(special) || // Full domain match d.toLowerCase() === special.toLowerCase() ) ); }