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.

export handle

Oleg Isonenf982a6b884ba
diff --git a/apps/designer/app/routes/$.tsx b/apps/designer/app/routes/$.tsx
index e49895a4dd..ffb53c232d 100644
--- a/apps/designer/app/routes/$.tsx
+++ b/apps/designer/app/routes/$.tsx
@@ -38,6 +38,8 @@ export const dynamicLinks: DynamicLinksFunction<CanvasData> = ({
];
};
+export const handle = { dynamicLinks };
+
export const meta: MetaFunction = ({ data }: { data: Data }) => {
if ("errors" in data) {
return { title: "Error" };
diff --git a/apps/designer/app/routes/index.tsx b/apps/designer/app/routes/index.tsx
index f25a900ee2..9891ab6a04 100644
--- a/apps/designer/app/routes/index.tsx
+++ b/apps/designer/app/routes/index.tsx
@@ -8,7 +8,7 @@ import type { DynamicLinksFunction } from "remix-utils";
import CatchAllContnet, {
loader as catchAllloader,
meta as catchAllmeta,
- dynamicLinks as catchAllDynamicLinks,
+ handle as catchAllHandle,
} from "./$";
// We're wrapping functions in order for them to be distinct from the ones in $.tsx.
@@ -16,8 +16,6 @@ import CatchAllContnet, {
export const meta: MetaFunction = (args) => catchAllmeta(args);
export const loader: LoaderFunction = (args) => catchAllloader(args);
-export const dynamicLinks: DynamicLinksFunction = (args) =>
- catchAllDynamicLinks(args);
-export const handle = { dynamicLinks };
+export const handle = catchAllHandle;
const Content = () => <CatchAllContnet />;
export default Content;