@yuukijs/adapter-cloudflare-workers
v0.0.1
Published
Adapter for deploying serverless bots to Cloudflare Workers
Downloads
4
Maintainers
Readme
@yuukijs/adapter-cloudflare-workers
Adapter for deploying serverless bots to Cloudflare Workers
Setting Up
Install the required dev dependencies:
npm i -D @yuukijs/adapter-cloudflare-workers
npm i -D wrangler
Install the adapter into your config:
+ import adapter from '@yuukijs/adapter-cloudflare-workers'
export default {
+ adapter: adapter(),
}
Then, using Cloudflare's Wrangler CLI, set your bot's token and public key.
wrangler secret put YUUKI_BOT_TOKEN
wrangler secret put YUUKI_PUBLIC_KEY