SPB Git forge

spb/fetcha

Public
11commits 1branches 0releases
1.5 MBsize
maindefault branch
16 days agolast push
TypeScript 97.5% SQL 1.4% Python 0.8%
607 B · 21 lines typescript
Raw Blame History
1import { clsx, type ClassValue } from "clsx";2import { twMerge } from "tailwind-merge";34export function cn(...inputs: ClassValue[]) {5  return twMerge(clsx(inputs));6}78export function slugify(s: string): string {9  return s10    .normalize("NFD")11    .replace(/[̀-ͯ]/g, "")12    .toLowerCase()13    .trim()14    .replace(/[^a-z0-9]+/g, "-")15    .replace(/^-+|-+$/g, "")16    .slice(0, 48) || "project";17}1819export const SITE_URL = (process.env.NEXT_PUBLIC_SITE_URL ?? "https://www.fetcha.co").replace(/\/$/, "");20export const API_PUBLIC_URL = (process.env.NEXT_PUBLIC_API_URL ?? SITE_URL).replace(/\/$/, "");21