Skip to content

Commit 2bc2beb

Browse files
authored
Display visibility for public assets and functions on deploy. Clarifies when an asset or function has been deployed publicly, helping users quickly identify and address potential security concerns (#530)
1 parent 7b7bc7a commit 2bc2beb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/twilio-run/src/printers/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function prettyPrintDeployedResources(
160160
.sort(sortByAccess)
161161
.map((fn) => {
162162
const accessPrefix =
163-
fn.access !== 'public' ? chalk`{bold [${fn.access}]} ` : '';
163+
chalk`{bold [${fn.access}]} `;
164164
return chalk` ${accessPrefix}{dim https://${result.domain}}${fn.path}`;
165165
})
166166
.join('\n');
@@ -173,7 +173,7 @@ function prettyPrintDeployedResources(
173173
.sort(sortByAccess)
174174
.map((asset) => {
175175
const accessPrefix =
176-
asset.access !== 'public' ? chalk`{bold [${asset.access}]} ` : '';
176+
chalk`{bold [${asset.access}]} `;
177177
const accessUrl =
178178
asset.access === 'private'
179179
? chalk`{dim Runtime.getAssets()['}${asset.path}{dim ']}`

0 commit comments

Comments
 (0)