diff --git a/apps/builder/app/shared/db/canvas.server.ts b/apps/builder/app/shared/db/canvas.server.ts index 31bc5faf1c9e..05ee5309f296 100644 --- a/apps/builder/app/shared/db/canvas.server.ts +++ b/apps/builder/app/shared/db/canvas.server.ts @@ -35,14 +35,17 @@ export const loadProductionCanvasData = async ( // Check that build deployment domains are still active and verified // for examle: redeploy created few days later - const domains = deployment.domains.filter((domain) => - currentProjectDomains.some( - (projectDomain) => - projectDomain.domain.domain === domain && - projectDomain.domain.status === "ACTIVE" && - projectDomain.verified - ) - ); + const domains = + deployment.destination === "static" + ? [] + : deployment.domains.filter((domain) => + currentProjectDomains.some( + (projectDomain) => + projectDomain.domain.domain === domain && + projectDomain.domain.status === "ACTIVE" && + projectDomain.verified + ) + ); const page = findPageByIdOrPath("/", build.pages); diff --git a/packages/domain/src/trpc/domain.ts b/packages/domain/src/trpc/domain.ts index e70804627571..451f4f85c079 100644 --- a/packages/domain/src/trpc/domain.ts +++ b/packages/domain/src/trpc/domain.ts @@ -72,6 +72,7 @@ export const domainRouter = router({ destination: input.destination, name: `${project.id}.zip`, assetsDomain: project.domain, + templates: ["ssg"], }, }, ctx diff --git a/packages/sdk/src/schema/deployment.ts b/packages/sdk/src/schema/deployment.ts index 9ceb4543ef1d..9281215aebc3 100644 --- a/packages/sdk/src/schema/deployment.ts +++ b/packages/sdk/src/schema/deployment.ts @@ -5,6 +5,7 @@ export const Deployment = z.union([ destination: z.literal("static"), name: z.string(), assetsDomain: z.string(), + templates: z.array(z.string()), }), z.object({ destination: z.literal("saas").optional(),