Jelajahi Sumber

Remove protocol from custom domain (#3897)

Feroze Mohideen 2 tahun lalu
induk
melakukan
5bafffabd7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      dashboard/src/lib/porter-apps/services.ts

+ 1 - 1
dashboard/src/lib/porter-apps/services.ts

@@ -262,7 +262,7 @@ export function serializeService(service: ClientService): SerializedService {
           }),
           }),
           healthCheck: serializeHealth({ health: config.healthCheck }),
           healthCheck: serializeHealth({ health: config.healthCheck }),
           domains: config.domains.map((domain) => ({
           domains: config.domains.map((domain) => ({
-            name: domain.name.value,
+            name: domain.name.value.replace("https://", "").replace("http://", ""),
           })),
           })),
           ingressAnnotations: Object.fromEntries(
           ingressAnnotations: Object.fromEntries(
             config.ingressAnnotations
             config.ingressAnnotations