finished client + added docker compose builds for client and server
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
import { treaty } from "@elysiajs/eden";
|
||||
import type { App } from "@turborepo-starter-project/server";
|
||||
|
||||
export const api = treaty<App>(process.env.NEXT_PUBLIC_API_URL || "http://localhost:3000");
|
||||
@@ -0,0 +1,12 @@
|
||||
import { createAuthClient } from "better-auth/client";
|
||||
import { adminClient } from "better-auth/client/plugins";
|
||||
import { passkeyClient } from "@better-auth/passkey/client";
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: process.env.NEXT_PUBLIC_API_URL || "http://localhost:3000",
|
||||
basePath: "/auth",
|
||||
plugins: [
|
||||
adminClient(),
|
||||
passkeyClient(),
|
||||
],
|
||||
})
|
||||
@@ -0,0 +1,6 @@
|
||||
import { clsx, type ClassValue } from "clsx"
|
||||
import { twMerge } from "tailwind-merge"
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
}
|
||||
Reference in New Issue
Block a user