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.

PR fixes

Sara Vieira627f57486d2a
diff --git a/apps/designer/app/routes/designer/$id.tsx b/apps/designer/app/routes/designer/$id.tsx
index dcf5efafd9..c755411509 100644
--- a/apps/designer/app/routes/designer/$id.tsx
+++ b/apps/designer/app/routes/designer/$id.tsx
@@ -44,7 +44,9 @@ export const action: ActionFunction = async ({ request, params }) => {
};
} catch (error) {
if (error instanceof Error) {
- throw new Error(error.message);
+ return {
+ error: error.message,
+ };
}
}
}
diff --git a/apps/designer/package.json b/apps/designer/package.json
index 3c40186559..d2d0240c6f 100644
--- a/apps/designer/package.json
+++ b/apps/designer/package.json
@@ -55,6 +55,7 @@
"@sentry/remix": "^7.5.0",
"@stitches/react": "^1.2.7",
"@vercel/node": "^2.4.1",
+ "@webstudio-is/asset-uploader": "*",
"@webstudio-is/react-sdk": "*",
"bson-objectid": "^2.0.2",
"camelcase": "^6.3.0",
@@ -126,7 +127,6 @@
"esbuild-node-externals": "^1.4.1",
"esbuild-node-loader": "^0.8.0",
"eslint-config-custom": "*",
- "@webstudio-is/asset-uploader": "*",
"jest": "^27.5.1",
"prettier": "^2.6.2",
"prisma": "^3.14.0",