Skip to content

Commit 9ed7779

Browse files
authored
remove skipLastDeployedFromApiCheck from deploy helpers (#14399)
1 parent ab1ac83 commit 9ed7779

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

.changeset/good-hoops-joke.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@cloudflare/deploy-helpers": patch
3+
---
4+
5+
remove skipLastDeployedFromApiCheck
6+
7+
This was a temporary option to bypass an API issue, which has been fixed API side.

packages/deploy-helpers/src/deploy/helpers/validate-worker-props.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,7 @@ export async function preUploadApiChecks(
242242
return { workerTag, tags, workerExists, aborted: true };
243243
}
244244
}
245-
} else if (
246-
script.last_deployed_from === "api" &&
247-
!props.skipLastDeployedFromApiCheck
248-
) {
245+
} else if (script.last_deployed_from === "api") {
249246
logger.warn(
250247
`You are about to upload a Worker that was last updated via the script API.\nEdits that have been made via the script API will be overridden by your local code and config.`
251248
);

packages/deploy-helpers/src/shared/types.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ export type SharedDeployVersionsProps = {
108108
resourcesProvision: boolean;
109109
/** Controls whether provisioned resource IDs are written back to the config file. */
110110
skipProvisioningConfigWriteback: boolean;
111-
/** temporary hack - cf is not yet a recognised deploy source, so any deploys from cf comes back normalised to 'api'*/
112-
skipLastDeployedFromApiCheck: boolean;
113111
/** From --strict arg. In strict mode, conflicting pre-upload checks abort instead of auto-continuing. */
114112
strict: boolean;
115113
};

packages/wrangler/src/deployment-bundle/merge-config-args.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ async function mergeSharedConfigArgs(
9696
sendMetrics,
9797
resourcesProvision: getFlag("RESOURCES_PROVISION") ?? false,
9898
skipProvisioningConfigWriteback: false,
99-
skipLastDeployedFromApiCheck: false,
10099
strict: args.strict ?? false,
101100
};
102101

0 commit comments

Comments
 (0)