Skip to content

Commit

Permalink
Display visibility for public assets and functions on deploy. Clarifi…
Browse files Browse the repository at this point in the history
…es when an asset or function has been deployed publicly, helping users quickly identify and address potential security concerns (#530)
  • Loading branch information
Moopinger authored Jan 23, 2025
1 parent 7b7bc7a commit 2bc2beb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/twilio-run/src/printers/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function prettyPrintDeployedResources(
.sort(sortByAccess)
.map((fn) => {
const accessPrefix =
fn.access !== 'public' ? chalk`{bold [${fn.access}]} ` : '';
chalk`{bold [${fn.access}]} `;
return chalk` ${accessPrefix}{dim https://${result.domain}}${fn.path}`;
})
.join('\n');
Expand All @@ -173,7 +173,7 @@ function prettyPrintDeployedResources(
.sort(sortByAccess)
.map((asset) => {
const accessPrefix =
asset.access !== 'public' ? chalk`{bold [${asset.access}]} ` : '';
chalk`{bold [${asset.access}]} `;
const accessUrl =
asset.access === 'private'
? chalk`{dim Runtime.getAssets()['}${asset.path}{dim ']}`
Expand Down

0 comments on commit 2bc2beb

Please sign in to comment.