From e8223ac28958b3e9e4ff7f1d52b07902ca362a62 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 24 Jul 2026 20:15:48 +0530 Subject: [PATCH] fix: pass fallbackFile and VCS fields through push sites push sites ignored SPA fallbackFile and git connection fields from appwrite.config.json even though sites create/update already accept them. Pass them through on create/update and allow them in the site config schema. Co-authored-by: Cursor --- lib/commands/config.ts | 5 +++++ lib/commands/pull.ts | 5 +++++ lib/commands/push.ts | 12 ++++++++++++ 3 files changed, 22 insertions(+) diff --git a/lib/commands/config.ts b/lib/commands/config.ts index 8b657e9..d4a148c 100644 --- a/lib/commands/config.ts +++ b/lib/commands/config.ts @@ -154,6 +154,11 @@ const SiteSchema = z buildCommand: z.string().optional(), outputDirectory: z.string().optional(), fallbackFile: z.string().optional(), + installationId: z.string().optional(), + providerRepositoryId: z.string().optional(), + providerBranch: z.string().optional(), + providerSilentMode: z.boolean().optional(), + providerRootDirectory: z.string().optional(), buildSpecification: z.string().optional(), runtimeSpecification: z.string().optional(), deploymentRetention: z.number().optional(), diff --git a/lib/commands/pull.ts b/lib/commands/pull.ts index b0b7828..b5c79e8 100644 --- a/lib/commands/pull.ts +++ b/lib/commands/pull.ts @@ -461,6 +461,11 @@ export class Pull { buildCommand: site.buildCommand, outputDirectory: site.outputDirectory, fallbackFile: site.fallbackFile, + installationId: site.installationId, + providerRepositoryId: site.providerRepositoryId, + providerBranch: site.providerBranch, + providerSilentMode: site.providerSilentMode, + providerRootDirectory: site.providerRootDirectory, startCommand: site.startCommand, buildSpecification: site.buildSpecification, runtimeSpecification: site.runtimeSpecification, diff --git a/lib/commands/push.ts b/lib/commands/push.ts index 2e474cf..c2737aa 100644 --- a/lib/commands/push.ts +++ b/lib/commands/push.ts @@ -2311,6 +2311,12 @@ export class Push { buildRuntime: site.buildRuntime, adapter: site.adapter, startCommand: site.startCommand, + fallbackFile: site.fallbackFile, + installationId: site.installationId, + providerRepositoryId: site.providerRepositoryId, + providerBranch: site.providerBranch, + providerSilentMode: site.providerSilentMode, + providerRootDirectory: site.providerRootDirectory, buildSpecification: site.buildSpecification, runtimeSpecification: site.runtimeSpecification, deploymentRetention: site.deploymentRetention, @@ -2346,6 +2352,12 @@ export class Push { buildRuntime: site.buildRuntime, adapter: site.adapter, startCommand: site.startCommand, + fallbackFile: site.fallbackFile, + installationId: site.installationId, + providerRepositoryId: site.providerRepositoryId, + providerBranch: site.providerBranch, + providerSilentMode: site.providerSilentMode, + providerRootDirectory: site.providerRootDirectory, buildSpecification: site.buildSpecification, runtimeSpecification: site.runtimeSpecification, deploymentRetention: site.deploymentRetention,