Skip to content
Jupiter documentation
Menu

Deploy to Cloudflare

Create the D1 database, set the signing secret and ship the worker.

You need a Cloudflare account and wrangler logged in (npx wrangler login).

Create the database#

wrangler prints a database_id. Paste it into d1_databases in wrangler.jsonc, replacing the placeholder 00000000-0000-0000-0000-000000000000.

Set the signing secret#

Paste a long random value when prompted. This key signs every JWT; changing it invalidates existing tokens.

Migrate and deploy#

db:migrate:remote applies migrations/*.sql to the production database. deploy uploads the worker and prints its URL.

Verify#

Source: belikh/hello-fresh-API HEAD