Skip to content

Commit 178d5bc

Browse files
committed
fix: support src not exist
1 parent 1aba75c commit 178d5bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/serverless.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ class ServerlessComopnent extends Component {
6161
const { region } = inputs
6262
const cos = new Cos(credentials, region)
6363

64-
const files = await this.unzip(inputs.src)
64+
let files = null
65+
if (inputs.src) {
66+
files = await this.unzip(inputs.src)
67+
}
6568

6669
const appId = this.getAppId()
6770

0 commit comments

Comments
 (0)