Configure request timeout settings for optimal performance
import GboxSDK from "gbox-sdk"; const gboxSDK = new GboxSDK({ apiKey: process.env["GBOX_API_KEY"], timeout: 30 * 1000, // 30 seconds (default is 60 seconds) });
// Short timeout for fast operations like listing const boxes = await gboxSDK.listBoxes( {}, { timeout: 10 * 1000 } // 10 seconds );
Was this page helpful?