forked from CipherYuvraj/Greenstagram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
47 lines (42 loc) · 920 Bytes
/
serverless.yml
File metadata and controls
47 lines (42 loc) · 920 Bytes
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
service: greenstagram
provider:
name: aws
runtime: nodejs18.x
stage: ${opt:stage, 'dev'}
region: ${opt:region, 'us-east-1'}
environment:
NODE_ENV: ${self:provider.stage}
MONGODB_URI: ${env:MONGODB_URI}
JWT_SECRET: ${env:JWT_SECRET}
AZURE_CLIENT_ID: ${env:AZURE_CLIENT_ID}
AZURE_CLIENT_SECRET: ${env:AZURE_CLIENT_SECRET}
AZURE_TENANT_ID: ${env:AZURE_TENANT_ID}
REDIS_URL: ${env:REDIS_URL}
functions:
api:
handler: backend/dist/index.handler
events:
- http:
path: /{proxy+}
method: ANY
cors: true
- http:
path: /
method: ANY
cors: true
plugins:
- serverless-offline
- serverless-dotenv-plugin
custom:
serverless-offline:
httpPort: 3001
stage: local
package:
exclude:
- frontend/**
- node_modules/**
- .git/**
- README.md
- .env*
include:
- backend/dist/**