katallaxie / serverless-dart

⚡ 🎯 a serverless framework plugin for Dart applications
https://www.npmjs.com/package/serverless-dart
MIT License
29 stars 7 forks source link

serverless deploy not working anymore #5

Closed thomasklaush closed 2 years ago

thomasklaush commented 2 years ago

🐛 Bug description

serverless deploy is not working, since dart replaced dart2native with dart compile exe

sh: 1: /usr/lib/dart/bin/dart2native: not found

amondnet commented 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