File tree 1 file changed +11
-5
lines changed
1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,11 @@ function prettyPrintConfigInfo(config: DeployLocalProjectConfig) {
74
74
dependencyString = Object . keys ( config . pkgJson . dependencies ) . join ( ', ' ) ;
75
75
}
76
76
77
+ process . stderr . write (
78
+ '\nDeploying functions & assets to the Twilio Runtime\n'
79
+ ) ;
77
80
console . log (
78
81
chalk `
79
- Deploying functions & assets to Twilio Serverless
80
-
81
82
{bold.cyan Account}\t\t${ config . accountSid }
82
83
{bold.cyan Token}\t\t${ redactPartOfString ( config . authToken ) }
83
84
{bold.cyan Service Name}\t${ config . serviceName }
@@ -121,6 +122,7 @@ function prettyPrintDeployedResources(
121
122
${ result . buildSid }
122
123
` . trim ( )
123
124
) ;
125
+
124
126
if ( result . functionResources ) {
125
127
const functionMessage = result . functionResources
126
128
. sort ( sortByAccess )
@@ -137,10 +139,14 @@ function prettyPrintDeployedResources(
137
139
if ( result . assetResources ) {
138
140
const assetMessage = result . assetResources
139
141
. sort ( sortByAccess )
140
- . map ( fn => {
142
+ . map ( asset => {
141
143
const accessPrefix =
142
- fn . access !== 'public' ? chalk `{bold [${ fn . access } ]} ` : '' ;
143
- return chalk ` ${ accessPrefix } {dim https://${ result . domain } }${ fn . path } ` ;
144
+ asset . access !== 'public' ? chalk `{bold [${ asset . access } ]} ` : '' ;
145
+ const accessUrl =
146
+ asset . access === 'private'
147
+ ? chalk `{dim Runtime.getAssets()['}${ asset . path } {dim ']}`
148
+ : chalk `{dim https://${ result . domain } }${ asset . path } ` ;
149
+ return ` ${ accessPrefix } ${ accessUrl } ` ;
144
150
} )
145
151
. join ( '\n' ) ;
146
152
You can’t perform that action at this time.
0 commit comments