mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-02-25 20:35:10 +00: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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user