documentation
documentation copied to clipboard
Pre-fill cloud address and namespace in connection code
Brief description
Whenever we have a snippet like this:
const connection = await Connection.connect({
address: 'foo.bar.tmprl.cloud',
tls: {
clientCertPair: {
crt: fs.readFileSync(clientCertPath),
key: fs.readFileSync(clientKeyPath),
},
},
});
const client = new WorkflowClient({ connection, namespace: 'foo.bar' });
If a user is a Cloud user, fill in the address and namespace with the namespace that user last used in Cloud.
Depends on https://github.com/temporalio/cloud-ui/issues/95
Suggested by @mfateev