Skip to content

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.

Merge branch 'main' into fix/eslint-improvements

Andras Bacsai02d6e508ddb6
diff --cc apps/designer/app/routes/rest/project/clone.$domain.ts
index 655a812f12,b556233731..34274ce5cf
--- a/apps/designer/app/routes/rest/project/clone.$domain.ts
+++ b/apps/designer/app/routes/rest/project/clone.$domain.ts
@@@ -31,10 -29,8 +31,10 @@@ const ensureProject = async (
* 3. Redirect user to the designer with the cloned project
*/
export const loader: LoaderFunction = async ({ request, params }) => {
- if (params.domain === undefined) return { errors: "Domain required" };
+ if (params.domain === undefined) {
+ return { errors: "Domain required" };
+ }
- const user = await authenticator.isAuthenticated(request);
+ const user = await findAuthenticatedUser(request);
const { headers, userId: generatedUserId } = await ensureUserCookie(request);
try {
const userId = await userDb.user.ensureUser({