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
fix: local dev should use location.host
Andras Bacsaif3af231e4dd2
diff --git a/apps/designer/app/designer/features/topbar/publish.tsx b/apps/designer/app/designer/features/topbar/publish.tsxindex 2c23e169ad..413b135265 100644--- a/apps/designer/app/designer/features/topbar/publish.tsx+++ b/apps/designer/app/designer/features/topbar/publish.tsx@@ -23,7 +23,7 @@ const host = () => {if (env.PUBLISHER_ENDPOINT && env.PUBLISHER_DOMAIN) {return env.PUBLISHER_DOMAIN;}- return env.DESIGNER_DOMAIN;+ return env.DESIGNER_DOMAIN || location.host;};const Content = ({ project }: PublishButtonProps) => {diff --git a/apps/designer/env-check.js b/apps/designer/env-check.jsindex 577a10a3d1..08652df586 100644--- a/apps/designer/env-check.js+++ b/apps/designer/env-check.js@@ -13,7 +13,7 @@// eslint-disable-next-line @typescript-eslint/no-var-requiresrequire("dotenv").config();-const REQUIRED_ENVS = ["DATABASE_URL", "AUTH_SECRET", "DESIGNER_DOMAIN"];+const REQUIRED_ENVS = ["DATABASE_URL", "AUTH_SECRET"];const S3_KEYS = ["S3_ENDPOINT","S3_REGION",@@ -32,7 +32,12 @@ REQUIRED_ENVS.map((env) => {if (process.env.DEPLOYMENT_ENVIRONMENT === "production") {if (!process.env.DEPLOYMENT_URL) {errors.push(- "👉 In production DEPLOYMENT_URL is required for website functionality. Please set it to your production URL"+ "👉 In production DEPLOYMENT_URL is required for website functionality. Please set it to your production URL."+ );+ }+ if (!process.env.DESIGNER_DOMAIN) {+ errors.push(+ "👉 In production DESIGNER_DOMAIN is required for website functionality. Please set it to your production URL of the designer.");}}