mirror of
https://gitbruv.vercel.app/api/git/bruv/gitbruv.git
synced 2025-12-20 23:24:09 +01:00
fix
This commit is contained in:
parent
2483a758c8
commit
698cf2bcd9
4 changed files with 27 additions and 48 deletions
16
lib/utils.ts
16
lib/utils.ts
|
|
@ -1,6 +1,16 @@
|
|||
import { clsx, type ClassValue } from "clsx"
|
||||
import { twMerge } from "tailwind-merge"
|
||||
import { clsx, type ClassValue } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
|
||||
export const getPublicServerUrl = () => {
|
||||
if (process.env.NEXT_PUBLIC_VERCEL_ENV === "production") {
|
||||
return `https://${process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL}`;
|
||||
} else if (process.env.NEXT_PUBLIC_VERCEL_ENV === "preview") {
|
||||
return `https://${process.env.NEXT_PUBLIC_VERCEL_BRANCH_URL}`;
|
||||
} else {
|
||||
return `http://localhost:3000`;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue