mirror of
https://gitlab.massbug.com/massbug/judge4c.git
synced 2025-07-04 14:51:36 +00:00
feat(rpc): create type-safe client with AppType
This commit is contained in:
parent
0b624f0873
commit
e3dac30eaa
4
src/lib/rpc.ts
Normal file
4
src/lib/rpc.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import { hc } from "hono/client";
|
||||||
|
import { AppType } from "@/app/api/[[...route]]/route";
|
||||||
|
|
||||||
|
export const client = hc<AppType>(process.env.NEXT_PUBLIC_APP_URL!);
|
Loading…
Reference in New Issue
Block a user