mirror of
https://github.com/andwati/dokploy.git
synced 2026-12-06 01:28:46 +00:00
Add DnsHelperModal component for DNS configuration guidance and integrate it into ShowDomainsCompose. Enhance domain validation functionality with server IP checks and improve UI with tooltips for better user experience.
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
||||
removeDomain,
|
||||
removeDomainById,
|
||||
updateDomainById,
|
||||
validateDomain,
|
||||
} from "@dokploy/server";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { z } from "zod";
|
||||
@@ -224,4 +225,15 @@ export const domainRouter = createTRPCRouter({
|
||||
|
||||
return result;
|
||||
}),
|
||||
|
||||
validateDomain: protectedProcedure
|
||||
.input(
|
||||
z.object({
|
||||
domain: z.string(),
|
||||
serverIp: z.string().optional(),
|
||||
}),
|
||||
)
|
||||
.mutation(async ({ input }) => {
|
||||
return validateDomain(input.domain, input.serverIp);
|
||||
}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user