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-dart offline #1

Open tiagocpeixoto opened 3 years ago

tiagocpeixoto commented 3 years ago

Is it possible to run serverless-dart in the local environment, for example using serverless-offline?

💡 Feature description

Run serverless-dart with serverless-offline to run and test code locally.

katallaxie commented 3 years ago

Hi, should be possible. I would have to test this.

MichaelCharles commented 3 years ago

I'd just like to chime in and say that the serverless-offline plugin is currently not working with serverless-dart.

Running sls offline works, however when trigger the function through API Gateway (it's the only way I've tested it so far) it results in the following error:

offline: Warning: found unsupported runtime 'provided.al2' for function 'hello'
offline: Failure: Unsupported runtime