Skip to content

Instantly share code, notes, and snippets.

@viktorfa

viktorfa/serverless.yml

Last active Aug 16, 2020
Embed
What would you like to do?
Serverless config for Strapi Serverless
service: sls-strapi
provider:
name: aws
runtime: nodejs12.x
profile: <your-aws-profile>
logRetentionInDays: ${self:custom.vars.logRetentionInDays, 1}
environment:
ADMIN_JWT_SECRET: "Just using dummy"
package:
exclude:
- ./**
include:
- node_modules/**
- api/**
- config/**
- extensions/**
- plugins/**
- package.json
- app.js
functions:
api:
handler: app.handler
memorySize: 1024
timeout: 24
events:
- http:
path: /
method: ANY
cors: true
- http:
path: /{any+}
method: ANY
cors: true
plugins:
- serverless-offline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.