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.

Remove domains flag (#1761)

Ivan Starkov3c34035a7a4c
diff --git a/apps/builder/app/builder/features/topbar/publish.tsx b/apps/builder/app/builder/features/topbar/publish.tsx
index e9296ad629..30c0609151 100644
--- a/apps/builder/app/builder/features/topbar/publish.tsx
+++ b/apps/builder/app/builder/features/topbar/publish.tsx
@@ -23,7 +23,6 @@ import { validateProjectDomain, type Project } from "@webstudio-is/project";
import { getPublishedUrl } from "~/shared/router-utils";
import { theme } from "@webstudio-is/design-system";
import { useAuthPermit } from "~/shared/nano-states";
-import { isFeatureEnabled } from "@webstudio-is/feature-flags";
import {
Domains,
getPublishStatusAndText,
@@ -409,54 +408,46 @@ const Content = (props: { projectId: Project["id"] }) => {
/>
)}
- {isFeatureEnabled("domains") && (
- <>
- {domainSystemError !== undefined && (
- <Text color="destructive">{domainSystemError}</Text>
- )}
-
- {domainsResult?.success === true && (
- <Domains
- newDomains={newDomains}
- domains={domainsResult.data}
- refreshDomainResult={domainRefresh}
- domainState={domainState}
- isPublishing={isPublishing}
- />
- )}
- {domainsResult?.success === false && (
- <Label
- css={{
- overflowWrap: "anywhere",
- color: theme.colors.foregroundDestructive,
- }}
- >
- <div>{domainsResult.error}</div>
- </Label>
- )}
- </>
+ {domainSystemError !== undefined && (
+ <Text color="destructive">{domainSystemError}</Text>
)}
- </ScrollArea>
-
- {isFeatureEnabled("domains") && (
- <>
- <Flex direction="column" justify="end" css={{ height: 0 }}>
- <Separator />
- </Flex>
- <AddDomain
- projectId={props.projectId}
+ {domainsResult?.success === true && (
+ <Domains
+ newDomains={newDomains}
+ domains={domainsResult.data}
refreshDomainResult={domainRefresh}
domainState={domainState}
- onCreate={(domain) => {
- setNewDomains((prev) => {
- return new Set([...prev, domain]);
- });
- }}
isPublishing={isPublishing}
/>
- </>
- )}
+ )}
+ {domainsResult?.success === false && (
+ <Label
+ css={{
+ overflowWrap: "anywhere",
+ color: theme.colors.foregroundDestructive,
+ }}
+ >
+ <div>{domainsResult.error}</div>
+ </Label>
+ )}
+ </ScrollArea>
+
+ <Flex direction="column" justify="end" css={{ height: 0 }}>
+ <Separator />
+ </Flex>
+
+ <AddDomain
+ projectId={props.projectId}
+ refreshDomainResult={domainRefresh}
+ domainState={domainState}
+ onCreate={(domain) => {
+ setNewDomains((prev) => {
+ return new Set([...prev, domain]);
+ });
+ }}
+ isPublishing={isPublishing}
+ />
{projectData?.success === true ? (
<Publish
diff --git a/packages/feature-flags/src/flags.ts b/packages/feature-flags/src/flags.ts
index c5a30e96e4..ea5c5e0ad9 100644
--- a/packages/feature-flags/src/flags.ts
+++ b/packages/feature-flags/src/flags.ts
@@ -2,4 +2,3 @@ export const example = false;
export const dark = false;
export const unsupportedBrowsers = false;
export const displayContents = false;
-export const domains = false;