Multitenantperorg enabling
All checks were successful
Build and Push / build (push) Successful in 1m21s
All checks were successful
Build and Push / build (push) Successful in 1m21s
This commit is contained in:
@@ -100,11 +100,19 @@ export async function POST(
|
||||
"TOOLS.md": toolsMd,
|
||||
};
|
||||
|
||||
// Step 4: Create the PiecedTenant CR
|
||||
// Step 4: Create the PiecedTenant CR.
|
||||
// displayName: prefer the customer-chosen instance name; fall back to
|
||||
// the company name. With multi-tenant per org, instanceName is what
|
||||
// distinguishes "Acme Production" from "Acme Dev" on the dashboard.
|
||||
const displayName =
|
||||
tenantRequest.instanceName && tenantRequest.instanceName.trim().length > 0
|
||||
? tenantRequest.instanceName.trim()
|
||||
: tenantRequest.companyName;
|
||||
|
||||
await createTenant(
|
||||
tenantName,
|
||||
{
|
||||
displayName: tenantRequest.companyName,
|
||||
displayName,
|
||||
agentName: tenantRequest.agentName,
|
||||
packages,
|
||||
workspaceFiles,
|
||||
|
||||
Reference in New Issue
Block a user