-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy paths.dev.yaml
44 lines (42 loc) · 1.04 KB
/
s.dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
edition: 1.0.0
access: "default"
vars: # 全局变量
region: cn-hangzhou
service:
name: serverless-website
nasConfig: Auto
logConfig: Auto
description: "Serverless Devs website docs"
services:
website-starter:
component: fc
# actions:
# pre-deploy:
# - run: s nas upload -r ./.s/build/artifacts/serverless-website/docs-sync/node_modules /mnt/auto
# path: ./
props:
region: ${vars.region}
service: ${vars.service}
function:
name: docs-sync
description: "Serverless Devs Web Framework Next.js Function"
codeUri: "./"
runtime: custom
memorySize: 1024
timeout: 120
# customRuntimeConfig:
# command:
# - npx
# - nuxt
triggers:
- name: httpTrigger
type: http
config:
authType: anonymous
methods:
- GET
customDomains:
- domainName: auto
protocol: HTTP
routeConfigs:
- path: "/*"