mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-09-14 11:06:15 +05:00
refactor: simplify API configuration by returning links directly and moving transformer to the main return object for improved clarity
This commit is contained in:
parent
2d0874d499
commit
b027d21589
@ -73,12 +73,10 @@ const links =
|
||||
|
||||
export const api = createTRPCNext<AppRouter>({
|
||||
config() {
|
||||
return {
|
||||
transformer: superjson,
|
||||
links,
|
||||
};
|
||||
return { links };
|
||||
},
|
||||
ssr: false,
|
||||
transformer: superjson,
|
||||
});
|
||||
|
||||
export type RouterInputs = inferRouterInputs<AppRouter>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user