mirror of
https://github.com/bartvdbraak/hellob.art.git
synced 2025-06-28 15:29:11 +00:00
chore: restructured several configuration files
This commit is contained in:
parent
6e0b28db67
commit
c134c5aacd
3 changed files with 69 additions and 18 deletions
|
@ -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}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue