@upstash/workflow
, for Upstash Workflow. If you were using @upstash/qstash
for Upstash Workflow, you can refer to the migration guide for the transition..env.local
file in your project root and add your QStash token. This token is used to authenticate your application with the QStash service.
QSTASH_URL
and QSTASH_TOKEN
values in the console. Add these values to your .env.local
file:
QSTASH_TOKEN
from the Upstash Console..env.local
file with the following:***
with your actual QStash token.UPSTASH_WORKFLOW_URL
to the public URL provided by your local tunnel.app/api
directory and create a new folder, for example called workflow
. Inside this folder, create a route.ts
file that contains your workflow:
content-type: text/plain
header.
See the documentation on starting a workflow for other ways you can start your workflow.
QSTASH_TOKEN
and any other configuration variables your workflow might need.