.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.routes/api
directory and create a new folder, for example called workflow
. Inside this folder, create a +server.ts
file that contains your workflow:
QSTASH_TOKEN
and any other configuration variables your workflow might need.