Skip to content

CaptureContext/spi-proxy-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0439709 · Mar 28, 2024

History

9 Commits
Mar 22, 2024
Mar 22, 2024
Mar 22, 2024
Mar 27, 2024
Mar 27, 2024
Mar 28, 2024
Mar 22, 2024
Mar 22, 2024
Mar 22, 2024
Mar 27, 2024

Repository files navigation

spi-proxy-worker

A Cloudlfalre worker to proxy request to https://swiftpackageindex.com. To learn more about workers read this

Local Development

You need a node.js and npm. I recommend installing nvm to manage js related stuff and don’t mess with a system.

To run localy:

make run

Warning

You need to create a .dev.vars file at the root of the project and provide an API_TOKEN variable in following format API_TOKEN=<TOKEN>. To learn more read https://developers.cloudflare.com/workers/configuration/secrets/

Deployment

To deploy a project to Cloudflare run:

make deploy

Warning

You need to add an API_TOKEN to a worker after deployment. To do this run npx wrangler secret put API_TOKEN and put a token value when prompted.

Warning

If command fails with Authentication error try running npx wrangler login first

About

A Cloudlfare Worker to proxy request for https://swiftpackageindex.com. Used for SPI extension in Raycast https://www.raycast.com/maximkrouk/swift-package-index

Resources

Stars

Watchers

Forks

Releases

No releases published