Last active
February 17, 2023 20:53
-
-
Save viktorfa/909da389bfccd7255b147a63487ff7fd to your computer and use it in GitHub Desktop.
Serverless config for Strapi Serverless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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