.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.server/api
directory and create a new file, for example called workflow.ts
. This file will contain your workflow:
QSTASH_TOKEN
and any other configuration variables your workflow might need.