From 03d03ea7f191ca785a4c192502f2a1652ad8e831 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 15 Aug 2022 14:37:04 +0200 Subject: [PATCH] fix: add comment --- apps/designer/app/designer/features/topbar/publish.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/designer/app/designer/features/topbar/publish.tsx b/apps/designer/app/designer/features/topbar/publish.tsx index c46fad29a4..b9767998cd 100644 --- a/apps/designer/app/designer/features/topbar/publish.tsx +++ b/apps/designer/app/designer/features/topbar/publish.tsx @@ -23,6 +23,7 @@ const getHost = () => { if (env.PUBLISHER_ENDPOINT && env.PUBLISHER_HOST) { return env.PUBLISHER_HOST; } + // We use location.host to get the hostname and port in development mode and to not break local testing. return env.DESIGNER_HOST || location.host; };