Skip to content

Files

Latest commit

7b7bc7a · Dec 16, 2024

History

History

runtime-handler

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 11, 2024
Oct 14, 2021
Dec 11, 2024
Apr 21, 2021
Dec 16, 2024
Jun 10, 2021
Mar 18, 2024
Dec 16, 2024
Apr 20, 2021
Apr 20, 2021

@twilio/runtime-handler

How to use

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.

Local Development Feature

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);

Contributing

This project welcomes contributions from the community. Please see the CONTRIBUTING.md file for more details.

License

MIT