chore: restructured several configuration files

This commit is contained in:
Bart van der Braak 2023-06-15 01:37:42 +02:00
parent 6e0b28db67
commit c134c5aacd
3 changed files with 69 additions and 18 deletions

View file

@ -1,6 +1,8 @@
import { ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
import { env } from "@/env.mjs";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
@ -13,3 +15,7 @@ export function formatDate(input: string | number): string {
year: "numeric",
});
}
export function absoluteUrl(path: string) {
return `${env.NEXT_PUBLIC_APP_URL}${path}`;
}