fix: restore serverless.yml

This commit is contained in:
MTG2000
2022-03-26 18:09:04 +03:00
parent b1fdbfe1da
commit 7801b37d63

23
serverless.yml Normal file
View File

@@ -0,0 +1,23 @@
custom:
serverless-offline:
httpPort: 8888
plugins:
- serverless-offline
service: serverless-graphql
provider:
name: aws
runtime: nodejs12.x
functions:
graphql:
handler: functions/graphql/index.handler
events:
- http:
path: graphql
method: post
cors: true
- http:
path: graphql
method: get
cors: true