feat: Added GPU support feature for Remote Server with setup and status checks, including API endpoints and utility functions

This commit is contained in:
vishalkadam47
2024-11-02 15:15:58 +05:30
parent 3e467959c9
commit 1b6d8d803b
8 changed files with 361 additions and 46 deletions
-9
View File
@@ -21,8 +21,6 @@ import {
import type { Session, User } from "lucia";
import superjson from "superjson";
import { ZodError } from "zod";
import { setupGPUSupport } from '@dokploy/server/src/utils/gpu-setup';
/**
* 1. CONTEXT
*
@@ -209,10 +207,3 @@ export const adminProcedure = t.procedure.use(({ ctx, next }) => {
},
});
});
const appRouter = t.router({
setupGPU: t.procedure.mutation(async () => {
await setupGPUSupport();
return { success: true };
}),
});