Created
February 22, 2024 20:17
-
-
Save DarlonHenrique/b73608f8c1815a33ad50b7ef21d4f9c9 to your computer and use it in GitHub Desktop.
serverless cofnig
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/reference.json | |
service: backend | |
plugins: | |
- serverless-dotenv-plugin | |
- serverless-offline | |
- serverless-webpack | |
provider: | |
name: aws | |
runtime: nodejs20.x | |
region: sa-east-1 | |
timeout: 30 | |
custom: | |
webpack: | |
webpackConfig: webpack.config.js | |
keepOutputDirectory: true | |
includeModules: true | |
packager: npm | |
packagerOptions: | |
scripts: | |
- prisma generate --schema=../service/prisma/schema.prisma | |
functions: | |
main: | |
handler: dist/main.handler | |
events: | |
- http: | |
method: ANY | |
path: / | |
- http: | |
method: ANY | |
path: '{proxy+}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment