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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
revert last commit
Andras Bacsaib2156b047b82
diff --git a/apps/designer/app/designer/features/topbar/publish.tsx b/apps/designer/app/designer/features/topbar/publish.tsxindex a4dd14b41d..0b02f1db6a 100644--- a/apps/designer/app/designer/features/topbar/publish.tsx+++ b/apps/designer/app/designer/features/topbar/publish.tsx@@ -19,8 +19,8 @@ import env from "~/shared/env";type PublishButtonProps = { project: Project };-const host = (isLocal: boolean = false) => {- if (!isLocal && env.EDGE_DEPLOYMENT && env.EDGE_DOMAIN !== "") {+const host = () => {+ if (env.EDGE_DEPLOYMENT && env.EDGE_DOMAIN !== "") {return env.EDGE_DOMAIN;}if (typeof location === "object") {@@ -54,52 +54,25 @@ const Content = ({ project }: PublishButtonProps) => {<fetcher.Form method="post" action="/rest/publish"><Flex direction="column" gap="2">{url !== undefined && (- <>- {env.DEV_LOGIN && env.EDGE_DEPLOYMENT && (- <>- Local Deployment:- <Link- href={`${domain}.${host(true)}`}- target="_blank"- css={{- display: "flex",- gap: "$0",- }}- >- <Text- css={{- whiteSpace: "nowrap",- overflow: "hidden",- textOverflow: "ellipsis",- }}- >- {`${domain}.${host(true)}`}{" "}- </Text>- <ExternalLinkIcon />- </Link>- </>- )}- {env.DEV_LOGIN && env.EDGE_DEPLOYMENT && <>Edge Deployment:</>}- <Link- href={url}- target="_blank"+ <Link+ href={url}+ target="_blank"+ css={{+ display: "flex",+ gap: "$0",+ }}+ >+ <Textcss={{- display: "flex",- gap: "$0",+ whiteSpace: "nowrap",+ overflow: "hidden",+ textOverflow: "ellipsis",}}>- <Text- css={{- whiteSpace: "nowrap",- overflow: "hidden",- textOverflow: "ellipsis",- }}- >- {`${domain}.${host()}`}{" "}- </Text>- <ExternalLinkIcon />- </Link>- </>+ {`${domain}.${host()}`}{" "}+ </Text>+ <ExternalLinkIcon />+ </Link>)}<Flex gap="2" align="center"><input type="hidden" name="projectId" value={project.id} />diff --git a/apps/designer/app/env.server.ts b/apps/designer/app/env.server.tsindex f3843183b9..d0a64b54ff 100644--- a/apps/designer/app/env.server.ts+++ b/apps/designer/app/env.server.ts@@ -7,7 +7,6 @@ const env = {FEATURES: process.env.FEATURES,EDGE_DEPLOYMENT: process.env.EDGE_DEPLOYMENT === "true",EDGE_DOMAIN: process.env.EDGE_DOMAIN,- DEV_LOGIN: process.env.DEV_LOGIN === "true",} as const;export default env;