Skip to content

Commit

Permalink
feat: 改用output获取函数的自动定义域名
Browse files Browse the repository at this point in the history
  • Loading branch information
Fitz committed Aug 8, 2022
1 parent 2d98f5b commit 34b788a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions start-fc-cdn/src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,12 @@ services:
- GET
cdn-service: # cdn 相关配置
component: devsapp/cdn # 组件名称
actions: # 自定义执行逻辑
pre-deploy: # 在deploy之前运行
- plugin: cdn-fc-plugin
args:
serviceName: ${vars.serviceName}
functionName: ${vars.functionName}
props: # 组件的属性值
cdnType: web
domainName: ${vars.domainName}
sources:
- type: fc_domain
content: ${website.output.url.custom_domain[0].domain}
refreshConfig:
objectPaths:
- http://${vars.domainName}/
Expand Down

0 comments on commit 34b788a

Please sign in to comment.