.dev.vars
file in your project root and add your QStash token. This key is used to authenticate your application with the QStash service.
QSTASH_URL
and QSTASH_TOKEN
values in the console. Add these values to your .dev.vars
file:
QSTASH_TOKEN
from the Upstash Console..dev.vars
file with the following:***
with your actual QStash token.UPSTASH_WORKFLOW_URL
to the public URL provided by your local tunnel.src/index.ts
) and add the following code:
http://localhost:8787
.
You can verify your correct environment variable setup by checking the wrangler output, which should now have access to your QSTASH_TOKEN
binding and log your local URL:
.dev.vars
file are set in your Cloudflare Worker project settings. For example, your QSTASH_TOKEN
, and any other configuration variables your workflow might need.