diff --git a/packages/wrangler/src/versions/deploy.ts b/packages/wrangler/src/versions/deploy.ts index 51b2b90195b7f..89c3c794e8680 100644 --- a/packages/wrangler/src/versions/deploy.ts +++ b/packages/wrangler/src/versions/deploy.ts @@ -485,7 +485,7 @@ async function fetchLatestDeploymentVersions( `/accounts/${accountId}/workers/scripts/${workerName}/deployments` ); - const latestDeployment = deployments.at(-1); + const latestDeployment = deployments.at(0); if (!latestDeployment) return [[], new Map()]; const versionTraffic = new Map(