- Install
npm
dependencies - Create a Discord Application
- Store the Application's Client ID and Public Key values inside the
wrangler.toml
file's[vars]
config:
CLIENT_ID
PUBLICKEY
- Copy the Client Secret value, and then store it as Workers Secret using wrangler:
$ wrangler secret put CLIENT_SECRET
- Create a new KV Namespace, saving its ID value inside your
wrangler.toml
file
A local "deploy"
script is included, found within the package.json
file.
This is an alias for wrangler publish
, but it will also run the "build"
command before publishing.
$ npm run deploy