This repository was archived by the owner on Nov 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
62 lines (53 loc) · 1.36 KB
/
Copy pathserverless.yml
File metadata and controls
62 lines (53 loc) · 1.36 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
service: devlog-v2-ssr
frameworkVersion: '2'
unresolvedVariablesNotificationMode: error
# useDotenv: false
# variablesResolutionMode: 20210326
plugins:
- serverless-webpack
- serverless-dotenv-plugin
- serverless-offline
package:
include:
- build/client/loadable-stats.json
custom:
webpack:
webpackConfig: './config/webpack.config.serverless.js'
includeModules: true
provider:
name: aws
runtime: nodejs14.x
memorySize: 1024
timeout: 30
region: ap-northeast-2
stage: dev
lambdaHashingVersion: 20201221
apiGateway:
shouldStartNameWithService: true
minimumCompressionSize: 1024
environment:
REACT_APP_NODE_ENV: ${env:REACT_APP_NODE_ENV}
REACT_APP_SERVICE_URL: ${env:REACT_APP_SERVICE_URL}
REACT_APP_API_URI: ${env:REACT_APP_API_URI}
REACT_APP_PUBLIC_URL: ${env:REACT_APP_PUBLIC_URL}
REACT_APP_IMAGE_URL: ${env:REACT_APP_IMAGE_URL}
SERVERLESS_DEBUG: ${env:SERVERLESS_DEBUG}
# vpc:
# securityGroupIds:
# - ${env:AWS_SECURITY_GROUP_ID}
# subnetIds:
# - ${env:AWS_SUBNET_ID_FIRST}
# - ${env:AWS_SUBNET_ID_SECOND}
# - ${env:AWS_SUBNET_ID_THIRD}
functions:
app:
handler: src/serverless.handler
environment:
SLS_DEBUG: ${env:SERVERLESS_DEBUG}
events:
- http:
path: /
method: ANY
- http:
path: /{any+}
method: ANY