This repository contains templates of using Warrant in a Cloudflare Worker in difference scenarios. Clone the repository or use wrangler generate
to get started with any of the templates.
For local development, create a .dev.vars
file and add your Warrant API key from the dashboard:
WARRANT_API_KEY=your_warrant_api_key
When publishing a worker to Cloudflare, add your Warrant API key from the dashboard as a secret accessible to the worker using wrangler.