Просмотр исходного кода

Remove protocol from custom domain (#3897)

Feroze Mohideen 2 лет назад
Родитель
Сommit
5bafffabd7
1 измененных файлов с 1 добавлено и 1 удалено
  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 }),
           domains: config.domains.map((domain) => ({
-            name: domain.name.value,
+            name: domain.name.value.replace("https://", "").replace("http://", ""),
           })),
           ingressAnnotations: Object.fromEntries(
             config.ingressAnnotations