app/middleware.ts
Configure Credentials
We’re going to store our credentials in.env file. You can copy/paste the necessary credentials from the Upstash Console.
.env
npm run dev. Deploy your function to
Vercel with vercel --prod
The endpoint of the function will be printed. You can check if logs are
collected in Kafka by copying the curl expression from the console: