Skip to content

Conversation

@Raina451
Copy link
Collaborator

@Raina451 Raina451 commented Nov 25, 2025

Developer Experience

1. Create Config File

/uipath-config.json: (in root of project, pack cmd will copy this file to include in dist folder)

{
  "clientId": "your-client-id",
  "orgName": "your-org",
  "tenantName": "your-tenant",
  "baseUrl": "https://cloud.uipath.com",
  "redirectUri": "http://localhost:5173",
  "scope": "offline_access",
// custom variables
  "featureFlags": {
    "enableNewUI": true
  }
}

2. Load and Use

import { UiPath } from '@uipath/uipath-typescript';

// Load config
const { config, get } = await UiPath.getConfig();

// Initialize SDK
const sdk = new UiPath(config);
await sdk.initialize();

// Access custom properties
const enableUI = get('featureFlags').enableNewUI;  // true

Note: config file name and method name is yet to be decided

@Raina451 Raina451 changed the title feat: externalize sdk config - [PLT-92502] [WIP] feat: externalize sdk config - [PLT-92502] Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant