Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

fix: add comment

Andras Bacsai03d03ea7f191
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;
};