From 4f835c6c5e0ff330aaa9c224c199ebca07001943 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 4 Oct 2025 20:56:38 -0600 Subject: [PATCH 1/3] feat: add warning alert for URL changes in WebDomain component --- .../dashboard/settings/web-domain.tsx | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/apps/dokploy/components/dashboard/settings/web-domain.tsx b/apps/dokploy/components/dashboard/settings/web-domain.tsx index cafb95f5..3bbd961f 100644 --- a/apps/dokploy/components/dashboard/settings/web-domain.tsx +++ b/apps/dokploy/components/dashboard/settings/web-domain.tsx @@ -5,6 +5,7 @@ import { useEffect } from "react"; import { useForm } from "react-hook-form"; import { toast } from "sonner"; import { z } from "zod"; +import { AlertBlock } from "@/components/shared/alert-block"; import { Button } from "@/components/ui/button"; import { Card, @@ -76,6 +77,10 @@ export const WebDomain = () => { resolver: zodResolver(addServerDomain), }); const https = form.watch("https"); + const domain = form.watch("domain") || ""; + const host = data?.user?.host || ""; + const hasChanged = domain !== host; + console.log(domain, host); useEffect(() => { if (data) { form.reset({ @@ -119,6 +124,36 @@ export const WebDomain = () => { + {/* Warning for GitHub webhook URL changes */} + {hasChanged && ( + +
+

⚠️ Important: URL Change Impact

+

+ If you change the Dokploy Server URL from{" "} + {domain} to a new URL, you will need to update: +

+
    +
  • + GitHub Apps: Update webhook URLs in your + Github Apps settings +
  • +
  • + GitLab Apps: Update redirect URIs in your + GitLab Apps settings +
  • +
  • + Gitea Apps: Update redirect URIs in your + Gitea Apps settings +
  • +
+

+ 💡 Tip: Consider recreating Git providers + after URL changes to avoid manual configuration. +

+
+
+ )}
Date: Sat, 4 Oct 2025 20:58:07 -0600 Subject: [PATCH 2/3] refactor: simplify URL change warning in WebDomain component --- .../dashboard/settings/web-domain.tsx | 23 +++---------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/apps/dokploy/components/dashboard/settings/web-domain.tsx b/apps/dokploy/components/dashboard/settings/web-domain.tsx index 3bbd961f..e1e0db8c 100644 --- a/apps/dokploy/components/dashboard/settings/web-domain.tsx +++ b/apps/dokploy/components/dashboard/settings/web-domain.tsx @@ -130,26 +130,9 @@ export const WebDomain = () => {

⚠️ Important: URL Change Impact

- If you change the Dokploy Server URL from{" "} - {domain} to a new URL, you will need to update: -

-
    -
  • - GitHub Apps: Update webhook URLs in your - Github Apps settings -
  • -
  • - GitLab Apps: Update redirect URIs in your - GitLab Apps settings -
  • -
  • - Gitea Apps: Update redirect URIs in your - Gitea Apps settings -
  • -
-

- 💡 Tip: Consider recreating Git providers - after URL changes to avoid manual configuration. + If you change the Dokploy Server URL make sure to update + your Github Apps to keep the auto-deploy working and preview + deployments working.

From 9edd69b10d2df3a2a541a1d5002fb93d9400190a Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 4 Oct 2025 20:58:30 -0600 Subject: [PATCH 3/3] refactor: remove console log from WebDomain component --- apps/dokploy/components/dashboard/settings/web-domain.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/dokploy/components/dashboard/settings/web-domain.tsx b/apps/dokploy/components/dashboard/settings/web-domain.tsx index e1e0db8c..51cb7af3 100644 --- a/apps/dokploy/components/dashboard/settings/web-domain.tsx +++ b/apps/dokploy/components/dashboard/settings/web-domain.tsx @@ -80,7 +80,6 @@ export const WebDomain = () => { const domain = form.watch("domain") || ""; const host = data?.user?.host || ""; const hasChanged = domain !== host; - console.log(domain, host); useEffect(() => { if (data) { form.reset({