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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
load build without loading project
Roman Pominovd4a3b6af427c
diff --git a/apps/designer/app/routes/rest/breakpoints.$projectId.ts b/apps/designer/app/routes/rest/breakpoints.$projectId.tsindex de02840e4d..1cbce1dee5 100644--- a/apps/designer/app/routes/rest/breakpoints.$projectId.ts+++ b/apps/designer/app/routes/rest/breakpoints.$projectId.ts@@ -10,12 +10,11 @@ export const loader: LoaderFunction = async ({params,}): Promise<Array<Breakpoint> | ErrorData> => {try {- const project = await db.project.loadById(params.projectId);- if (project === null) {- throw new Error(`Project ${params.projectId} not found`);+ if (params.projectId === undefined) {+ throw new Error(`Project ID required`);}- const prodBuild = await db.build.loadProdByProjectId(project.id);+ const prodBuild = await db.build.loadProdByProjectId(params.projectId);if (prodBuild === undefined) {throw new Error(diff --git a/apps/designer/app/routes/rest/pages.$projectId.ts b/apps/designer/app/routes/rest/pages.$projectId.tsindex de02840e4d..1cbce1dee5 100644--- a/apps/designer/app/routes/rest/pages.$projectId.ts+++ b/apps/designer/app/routes/rest/pages.$projectId.ts@@ -10,12 +10,11 @@ export const loader: LoaderFunction = async ({params,}): Promise<Array<Breakpoint> | ErrorData> => {try {- const project = await db.project.loadById(params.projectId);- if (project === null) {- throw new Error(`Project ${params.projectId} not found`);+ if (params.projectId === undefined) {+ throw new Error(`Project ID required`);}- const prodBuild = await db.build.loadProdByProjectId(project.id);+ const prodBuild = await db.build.loadProdByProjectId(params.projectId);if (prodBuild === undefined) {throw new Error(