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: send origin url to publisher
Andras Bacsai340b55551362
diff --git a/apps/designer/app/routes/rest/publish.ts b/apps/designer/app/routes/rest/publish.tsindex 04d644cd6f..e376c5823b 100644--- a/apps/designer/app/routes/rest/publish.ts+++ b/apps/designer/app/routes/rest/publish.ts@@ -15,10 +15,12 @@ export const action: ActionFunction = async ({ request }) => {const headers = new Headers();headers.append("X-AUTH-WEBSTUDIO", process.env.PUBLISHER_TOKEN || "");headers.append("Content-Type", "text/plain");+ const url = new URL(request.url);const response = await fetch(process.env.PUBLISHER_ENDPOINT, {method: "PUT",headers,body: JSON.stringify({+ origin: url.origin,projectId,domain,}),