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 252-fonts-manager-and-fonts-selector

Oleg Isonen1afe8df42e82
diff --cc apps/designer/app/shared/db/canvas.server.ts
index 9d3d66c598,1b05f12c13..0728008564
--- a/apps/designer/app/shared/db/canvas.server.ts
+++ b/apps/designer/app/shared/db/canvas.server.ts
@@@ -33,27 -41,8 +41,9 @@@ export const loadCanvasData = async
return {
tree,
props,
- buildId: devBuild.id,
breakpoints: breakpoints.values,
+ buildId: devBuild.id,
+ page,
+ assets: project.assets ?? [],
};
};
-
- export const loadCanvasData = async ({
- projectId,
- }: {
- projectId: Project["id"];
- }): Promise<CanvasData | ErrorData> => {
- return await loadData(projectId);
- };
-
- export type PreviewData = Data;
-
- export const loadPreviewData = async ({
- projectId,
- }: {
- projectId: Project["id"];
- }): Promise<PreviewData | ErrorData> => {
- const { tree, props, breakpoints, assets } = await loadData(projectId);
- return { tree, props, breakpoints, assets };
- };