Skip to content

Instantly share code, notes, and snippets.

@viktorfa
Last active February 17, 2023 20:53
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viktorfa/909da389bfccd7255b147a63487ff7fd to your computer and use it in GitHub Desktop.
Save viktorfa/909da389bfccd7255b147a63487ff7fd to your computer and use it in GitHub Desktop.
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