This commit is contained in:
Dominic Ferrando
2025-10-18 08:27:51 -04:00
parent 33eb924173
commit 15aa6e44f0
6 changed files with 93 additions and 15 deletions
+6 -1
View File
@@ -1,4 +1,9 @@
import { treaty } from "@elysiajs/eden";
import type { App } from "./server/types";
export const api = treaty<App>('http://localhost:5173').api;
const baseURL =
import.meta.env.PROD
? "https://blade-and-brawn.fly.dev"
: "http://localhost:5173";
export const api = treaty<App>(baseURL).api;