feat: project bootstrap

This commit is contained in:
2024-02-18 21:14:41 +07:00
parent 1de8ccd2fd
commit 6b278b092e
19 changed files with 1009 additions and 262 deletions
+11
View File
@@ -0,0 +1,11 @@
import { createTRPCReact } from "@trpc/react-query";
import type { AppRouter } from "@/server/routers/_app";
export const getBaseUrl = () => {
if (typeof window !== "undefined") return "";
return `http://localhost:${process.env.PORT ?? 3000}`;
};
const trpc = createTRPCReact<AppRouter>({});
export default trpc;
+6
View File
@@ -0,0 +1,6 @@
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}