Closed thomasklaush closed 2 years ago
https://github.com/katallaxie/serverless-dart/pull/4 https://github.com/amondnet/serverless-dart/packages/1147640
service: hello
provider:
name: aws
runtime: dart
plugins:
# this registers the plugin
# with serverless
- '@amondnet/serverless-dart'
# creates one artifact for each function
package:
individually: true
functions:
hello:
# the first part of the handler refers to the script lib/main.dart.
# main.hello identifies the handler to execute in the Dart runtime.
# The runtime supports multiple handlers
# The plugin is smart to not rebuild those scripts with multiple handlers.
handler: main.hello
events:
- http:
path: /hello
method: GET
🐛 Bug description
serverless deploy is not working, since dart replaced dart2native with dart compile exe
sh: 1: /usr/lib/dart/bin/dart2native: not found