SST app that deploys an API to Cloudflare.
- Cloudflare:
- Must have set the
CLOUDFLARE_API_TOKEN
variable in your local environment.
- Must have set the
- pnpm:
- Must be installed in your system.
- SST Ion:
- Must be installed in your system.
pnpm install
sst deploy
-
Grab the
url
from the deployment:✔ Complete url: <worker_route_trigger_url>
-
Upload the
package.json
to an R2 bucket using your API endpoint:curl --upload-file package.json <worker_route_trigger_url>
-
Navigate to
<worker_route_trigger_url>
to see the uploadedpackage.json
file.
sst remove