Background Jobs Setup
Learn how to set up background jobs in your Indie Kit application using Inngest
Background Jobs Setup 🔄
Indie Kit comes with background jobs support powered by Inngest. Let's set it up! 🚀
Local Development 💻
Good news! Background jobs work out of the box in your local development environment. No additional setup needed!
The local Inngest server runs at:
You can use this URL to monitor your background jobs during development.
Production Setup ⚡
- Sign up for a free account at Inngest
- Create a new app in Inngest dashboard
- Get your Inngest API key
Hosting Options 🏢
Vercel (Recommended) ⭐
- Add
INNGEST_EVENT_KEY
to environment variables - Deploy your app
- Add the Inngest integration in Vercel
Best choice for Indie Kit apps!
Refer to https://www.inngest.com/docs/deploy/vercel for more details.
Render
- Add
INNGEST_EVENT_KEY
to environment variables - Follow Render-specific deployment steps
- Configure webhooks in Inngest dashboard
Refer to https://www.inngest.com/docs/deploy/render for more details.
Netlify
- Add
INNGEST_EVENT_KEY
to environment variables - Set up Netlify functions
- Configure webhooks in Inngest dashboard
Refer to https://www.inngest.com/docs/deploy/netlify for more details.
Verifying Setup ✅
To verify your background jobs are working:
- Deploy your application
- Check the Inngest dashboard
- You should see your functions listed
- Test a background job (e.g., sending a test email)
Features Available 🎯
With background jobs set up, you can use:
- ⏰ Scheduled tasks
- 📧 Email sequences
- 🔄 Retry mechanisms
- 📊 Job monitoring
- 🚨 Error handling
Best Practices 💡
- Always test jobs locally first
- Monitor job execution in production
- Set up alerts for failed jobs
- Use proper error handling
- Keep job logic idempotent
Now your Indie Kit application is ready to handle background jobs efficiently! 🎉