From 9d9822be104c9a63b9350e30d1785b5c6e1d77d9 Mon Sep 17 00:00:00 2001 From: Aryan Bansal Date: Mon, 27 Jul 2026 22:51:55 +0530 Subject: [PATCH] fix: ensure Apollo client is rebuilt after configuration update in rollback command (csdx launch:rollback) - Added a call to prepareApiClients() after getConfig() to ensure the Apollo client has the correct project and organization headers based on the latest configuration. --- src/commands/launch/rollback.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/launch/rollback.ts b/src/commands/launch/rollback.ts index 51b9b37..8cf536a 100644 --- a/src/commands/launch/rollback.ts +++ b/src/commands/launch/rollback.ts @@ -54,6 +54,8 @@ export default class Rollback extends BaseCommand { if (!this.flags.environment) { await this.getConfig(); } + + await this.prepareApiClients(); if (!this.sharedConfig.currentConfig?.uid) { await selectOrg({