kizzlebot
kizzlebot
CDCloudflare Developers
Created by kizzlebot on 8/1/2023 in #pages-help
pages functions package.json
I have a cloudflare pages application that is connected to gitlab and deploys when I push. In this repo is a ./functions directory that contains a _middleware.js file that proxies all http requests to a node.js api if the pathname starts with /api.
I would like to use the twilio npm package like it does in this example https://github.com/Ryandev/cloudflare-worker-twilio-sms Where should I put this dependency? In the top-level package.json file at the root of the project or should I be putting in functions/package.json
3 replies