-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathserverless.yml
More file actions
78 lines (70 loc) · 1.78 KB
/
Copy pathserverless.yml
File metadata and controls
78 lines (70 loc) · 1.78 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
service: abap-package-version-shield
org: sbcgua
app: abapversionshield
# stages:
# default:
# params:
# key1: devValue
# prod:
# params:
# key1: prodValue
# Notes: strange bug: requires npm run esbuild first ... not sure why
build:
esbuild:
bundle: true
minify: false
metafile: true
sourcemap: false
provider:
name: aws
runtime: nodejs22.x
region: eu-west-1
stage: ${opt:stage, 'dev'}
# package:
# patterns:
# - '!**'
# - 'dist/out.js'
# - 'package.json'
functions:
getAbapVersionShieldJson:
handler: dist/out.getShieldJson
memorySize: 128
events:
- http:
path: version-shield-json/{sourcePath+}
method: get
cors: true
- http:
path: /
# cors: true
method: get
integration: mock
request:
template:
application/json: '{"statusCode": 301}'
response:
template: redirect
headers:
Location: "'https://sbcgua.github.io/abap-package-version-shield'"
statusCodes:
301:
pattern: ''
# Redo domains to native: https://www.serverless.com/framework/docs/providers/aws/guide/domains
# plugins:
# - serverless-domain-manager
# custom:
# stageDomainName:
# dev: dev-shield.abap.space
# qa: qa-shield.abap.space
# prod: shield.abap.space
# stageCertificateName:
# dev: '*.abap.space'
# qa: '*.abap.space'
# prod: '*.abap.space'
# customDomain:
# domainName: ${self:custom.stageDomainName.${self:provider.stage}}
# certificateName: ${self:custom.stageCertificateName.${self:provider.stage}}
# endpointType: 'regional'
# basePath: ''
# stage: ${self:provider.stage}
# createRoute53Record: true