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.

when on webstudio.is - publishing goes to domain.wstd.io

Oleg Isonen0c8a5eb450a2
diff --git a/app/designer/features/topbar/publish.tsx b/app/designer/features/topbar/publish.tsx
index a4671e28ee..f1924b0ff4 100644
--- a/app/designer/features/topbar/publish.tsx
+++ b/app/designer/features/topbar/publish.tsx
@@ -28,7 +28,10 @@ const Content = ({ project }: PublishProps) => {
if (typeof location !== "object" || !domain) {
return;
}
- setUrl(`${location.protocol}//${domain}.${location.host}`);
+ const host = location.host.includes("webstudio.is")
+ ? "wstd.io"
+ : location.host;
+ setUrl(`${location.protocol}//${domain}.${host}`);
}, [domain]);
return (