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: able to use remote dev environments with IP address
Andras Bacsaie524fed797df
diff --git a/apps/designer/app/shared/router-utils/build-params.ts b/apps/designer/app/shared/router-utils/build-params.tsindex 02e3061e46..aa74b2b456 100644--- a/apps/designer/app/shared/router-utils/build-params.ts+++ b/apps/designer/app/shared/router-utils/build-params.ts@@ -42,8 +42,14 @@ export const getBuildOrigin = (// Local development special caseconst host = getRequestHost(request);- if (env.NODE_ENV === "development" && isLocalhost(host)) {- return `http://${host.split(".").pop()}`;+ if (env.NODE_ENV === "development") {+ if (isLocalhost(host)) {+ return `http://${host.split(".").pop()}`;+ }+ // If we're not on localhost, we're probably using ip address - useful for remote development+ if (host.split(".").length === 4) {+ return `http://${host}`;+ }}// Vercel preview special case