TriggerDev can add background jobs to your NextJS application.

Furthermore, They implemented some cool ways to deal with the timeout for Vercel serverless functions by isolating each task in one request.

They are fully open-source, and self-hosted.

Here is the link:

https://github.com/triggerdotdev/trigger.dev