Skip to content

Commit de09fd6

Browse files
author
dfounderliu
committed
fix: no src
1 parent 2fe0067 commit de09fd6

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

example/serverless.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ app: websiteApp
55
stage: dev
66

77
inputs:
8-
src:
9-
root: ./
10-
src: ./src
11-
hook: npm run build
12-
index: index.html
13-
error: index.html
148
region: ap-guangzhou
159
bucketName: my-bucket
1610
protocol: http

src/serverless.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Express extends Component {
6161
// 判断是否需要测试模板
6262
if (!inputs.srcOriginal) {
6363
output.templateUrl = templateDownloadUrl
64-
inputs.srcOriginal = inputs.src
64+
inputs.srcOriginal = inputs.src || {}
6565
inputs.src = await this.downloadDefaultZip()
6666
inputs.srcOriginal.websitePath = './src'
6767
}

0 commit comments

Comments
 (0)