This repository was archived by the owner on Aug 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathserverless.yml
72 lines (69 loc) · 1.58 KB
/
serverless.yml
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
service: qiita-stocker-nuxt
provider:
name: aws
runtime: nodejs12.x
stage: ${env:STAGE}
region: ap-northeast-1
logRetentionInDays: 30
iamRoleStatements:
- Effect: 'Allow'
Action:
- 'lambda:InvokeFunction'
Resource:
- Fn::Join:
- ':'
- - arn:aws:lambda
- Ref: AWS::Region
- Ref: AWS::AccountId
- function:${self:service}-${opt:stage, self:provider.stage}-*
environment:
STAGE: ${env:STAGE}
NODE_ENV: ${env:NODE_ENV}
QIITA_CLIENT_ID: ${env:QIITA_CLIENT_ID}
QIITA_CLIENT_SECRET: ${env:QIITA_CLIENT_SECRET}
API_URL_BASE: ${env:API_URL_BASE}
APP_URL: ${env:APP_URL}
GOOGLE_SITE_VERIFICATION: ${env:GOOGLE_SITE_VERIFICATION}
TRACKING_ID: ${env:TRACKING_ID}
package:
individually: true
exclude:
- .git/**
- .github/**
- .idea/**
- coverage/**
- node_modules/.bin/**
- node_modules/.cache/**
- node_modules/.cache/**
- app/**
- server/**
- test/**
- .editorconfig
- .gitignore
- .prettierrc
- createEnv.ts
- envUtils.ts
- jest.config.js
- LICENSE
- nodemon.json
- package.json
- qiita-stocker-frontend.iml
- README.md
- tsconfig.json
- tsconfig.server.json
- yarn-error.log
- yarn.lock
functions:
render:
handler: dist/server/lambda.render
events:
- http:
path: '/'
method: get
- http:
path: '{proxy+}'
method: get
- http:
path: '/api/{proxy+}'
method: any
provisionedConcurrency: 1