Cloudflare worker used to retrieve and cache from the Filecoin PDP Storage Providers.
- Install dependencies
npm install
-
Edit environment variables inside
wrangler.toml
files -
Run your worker
npm run dev
In order to deploy your worker via Github Actions, you need to have a Cloudflare API token.
Add generated API token to Github secrets as CLOUDFLARE_API_TOKEN
.
After setting up secrets, you can push your code to Github and worker will be deployed to production environment automatically.