Define the version of the @twilio/runtime-handler
inside your dependencies
section of the package.json
. For example:
{
"dependencies": {
"@twilio/runtime-handler": "1.1.0"
}
}
Important: You need to specify the exact version you want to use. Semver ranges are at the moment not supported.
The following features are primarily designed to be used by twilio-run
and the Serverless Toolkit. This part of the package emulates Twilio Functions for local development and is NOT available when deployed to Twilio Functions.
If for some reason you are trying to set up your own local development environment outside of the Serverless Toolkit you can do so through
const { LocalDevelopmentServer } = require('@twilio/runtime-handler/dev');
const server = new LocalDevelopmentServer(port, config);
server.getApp().listen(port);
This project welcomes contributions from the community. Please see the CONTRIBUTING.md
file for more details.
MIT