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
minor
Roman Pominov689f005b69ee
diff --git a/apps/designer/.env.example b/apps/designer/.env.exampleindex fbfd4d7297..f7de0ef900 100644--- a/apps/designer/.env.example+++ b/apps/designer/.env.example@@ -33,4 +33,4 @@ USER_CONTENT_HOST=# If set to `true`, user-generated content will be available# only at {project.domain}.{USER_CONTENT_HOST}-USER_CONTENT_REQUIRE_SUBDOMAIN=\ No newline at end of file+USER_CONTENT_REQUIRE_SUBDOMAIN=diff --git a/apps/designer/app/routes/$.tsx b/apps/designer/app/routes/$.tsxindex 78ff386b0e..646b801c9c 100644--- a/apps/designer/app/routes/$.tsx+++ b/apps/designer/app/routes/$.tsx@@ -34,18 +34,18 @@ export const loader: LoaderFunction = async ({request,}): Promise<Data | Response> => {try {- const canvasRequest = getUserContentParams(request);+ const userContentParams = getUserContentParams(request);- if (canvasRequest === undefined) {+ if (userContentParams === undefined) {return redirect(config.dashboardPath);}- const { mode, pathname } = canvasRequest;+ const { mode, pathname } = userContentParams;const project =- "projectId" in canvasRequest- ? await db.project.loadById(canvasRequest.projectId)- : await db.project.loadByDomain(canvasRequest.projectDomain);+ "projectId" in userContentParams+ ? await db.project.loadById(userContentParams.projectId)+ : await db.project.loadByDomain(userContentParams.projectDomain);if (project === null) {throw json("Project not found", { status: 404 });