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.

auth check broke demo mode

Oleg Isonen65a420318990
diff --git a/apps/designer/app/routes/designer/$id.tsx b/apps/designer/app/routes/designer/$id.tsx
index e76fddaf30..bfa4324fd8 100644
--- a/apps/designer/app/routes/designer/$id.tsx
+++ b/apps/designer/app/routes/designer/$id.tsx
@@ -1,18 +1,13 @@
import { useLoaderData } from "@remix-run/react";
-import { LoaderFunction, redirect } from "@remix-run/node";
+import { LoaderFunction } from "@remix-run/node";
import type { Project } from "@webstudio-is/sdk";
import { Designer, links } from "~/designer";
import * as db from "~/shared/db";
import config from "~/config";
import env from "~/env.server";
-import { authenticator } from "~/services/auth.server";
export { links };
-export const loader: LoaderFunction = async ({ request, params }) => {
- const user = await authenticator.isAuthenticated(request);
- if (!user) {
- return redirect(config.loginPath);
- }
+export const loader: LoaderFunction = async ({ params }) => {
if (params.id === undefined) throw new Error("Project id undefined");
const project = await db.project.loadById(params.id);
if (project === null) {