diff --git a/lib/eden.ts b/lib/eden.ts new file mode 100644 index 0000000..39435ac --- /dev/null +++ b/lib/eden.ts @@ -0,0 +1,7 @@ +import { treaty } from "@elysia/eden" +import { app } from "@/app/api/[[...slugs]]/route" + +export const api = + typeof process !== "undefined" + ? treaty(app).api + : treaty("localhost:3000").api