https://nextjs-with-inngest.vercel.app
The goal is to write simple NextJS application, which:
- creates a job with server action
- redirects user to job page
- on client starts polling job state and shows it (didn't do it yet, not necessary for experiment)
- Main drawback is need to disable Deployment Protection or need for Protection Bypass for Automation which costs $150 per month. It is described in Vercel - Inngest Documentation
- Vercel integration works, but no way to select other than
Production
environment - Preview will automatically create Branch Environments. Which will stay active for 3 days since last deploy. Auto archive can be disabled. Working with Environments - Inngest Documentation
- Every step have maximum duration Vercel's max duration. But compared to Upstash solution, we can split the job to several steps and easily overcome this limit.
You will need Vercel's KV
npm install
- installs dependenciescp .env.example .env.local
- and updateKV_*
varsnpm dev
- starts local server and Inngest development server