Skip to content

Commit 5ce0535

Browse files
committed
添加x-domain能力
1 parent b40f1c3 commit 5ce0535

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

update.list

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
example/django-blog
1+
web-framework/nodejs/koa

web-framework/nodejs/koa/publish.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,9 @@ Parameters:
5757
title: 函数名
5858
type: string
5959
default: koa
60-
description: 函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-64 之间
60+
description: 函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-64 之间
61+
domainName:
62+
title: 域名配置
63+
type: string
64+
required: true
65+
x-domain: true

web-framework/nodejs/koa/src/s.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ access: "{{ access }}"
2424
vars: # 全局变量
2525
region: "{{ region }}"
2626
functionName: "{{ functionName }}"
27+
domainName: "{{ domainName }}"
2728
service:
2829
name: "{{ serviceName }}"
2930
description: 'Serverless Devs Web Framework Service'
@@ -65,7 +66,7 @@ services:
6566
methods:
6667
- GET
6768
customDomains:
68-
- domainName: auto
69+
- domainName: ${vars.domainName}
6970
protocol: HTTP
7071
routeConfigs:
7172
- path: '/*'

0 commit comments

Comments
 (0)