mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
36 lines
801 B
YAML
36 lines
801 B
YAML
# Welcome to serverless. Read the fn provider docs
|
|
# https://serverless.com/framework/docs/providers/fn/
|
|
|
|
# Serverless.yml is the configuration the CLI
|
|
# uses to deploy your code to your provider of choice
|
|
|
|
# The `service` block is the name of the service
|
|
service:
|
|
name: hello-world
|
|
# config:
|
|
# some: 'val'
|
|
|
|
frameworkVersion: '2'
|
|
|
|
# The `provider` block defines where your service will be deployed
|
|
provider:
|
|
name: fn
|
|
|
|
plugins:
|
|
- serverless-fn
|
|
|
|
# The `functions` block defines what code to deploy
|
|
functions:
|
|
hello: # <- hello references the ./hello folder and the func.js file inside
|
|
name: hello
|
|
version: 0.0.1
|
|
idletimeout: 45
|
|
format: json
|
|
memory: 256
|
|
# config:
|
|
# another: value
|
|
runtime: node
|
|
events:
|
|
- http:
|
|
path: /hello
|