serverless / components

The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
https://www.serverless.com
Apache License 2.0
2.31k stars 181 forks source link

Trim app, name and stage for serverless.yml #1035

Closed timqian closed 2 years ago

timqian commented 2 years ago

What has been implemented?

When there are two space keys before the name, app or stage value, the extra space key will be recognized as part of them. Which leads to a bug copying assets on COS/S3 (we use these values to form the key to store users' code on COS/S3 ${orgUid}/${stageName}/${appName}/${instanceName} )

Screen Shot 2021-12-06 at 4 29 29 PM

Related issue: https://app.asana.com/0/1200011502754281/1200844911571302