UNPKG

@reliverse/rse-sdk

Version:

@reliverse/rse-sdk allows you to create new plugins for @reliverse/rse CLI, interact with reliverse.org, and even extend your own CLI functionality (you may also try @reliverse/dler-sdk for this case).

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() ) ); }