<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/next-js-trigger-is-the-combo-you-ve-been-waiting-for-background-jobs-solved--ruzyou3cu" -->

---
title: Next.js + Trigger Is The Combo You&#x27;ve Been Waiting For...
description: Building long-running background jobs in Next.js is tricky due to serverless function timeouts. Trigger.dev solves this by letting you define tasks outside the...
canonical: https://daily.dev/posts/next-js-trigger-is-the-combo-you-ve-been-waiting-for-background-jobs-solved--ruzyou3cu
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Next.js + Trigger Is The Combo You&#x27;ve Been Waiting For (Background Jobs = SOLVED) | daily.dev
og:description: Building long-running background jobs in Next.js is tricky due to serverless function timeouts. Trigger.dev solves this by letting you define tasks outside the...
og:url: https://daily.dev/posts/next-js-trigger-is-the-combo-you-ve-been-waiting-for-background-jobs-solved--ruzyou3cu
og:image: https://api.daily.dev/og/posts/RUZyoU3cu.png
og:image:alt: Next.js + Trigger Is The Combo You&#x27;ve Been Waiting For (Background Jobs = SOLVED)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Next.js + Trigger Is The Combo You've Been Waiting For (Background Jobs = SOLVED)

**[ByteGrad](https://daily.dev/sources/bytegrad)** · 14 min read · 2 upvotes · 0 comments

## Summary

Building long-running background jobs in Next.js is tricky due to serverless function timeouts. Trigger.dev solves this by letting you define tasks outside the Next.js request-response cycle, with built-in retries, queuing, observability, and real-time progress streaming to the frontend. A demo app shows a video captioning workflow: uploading to Supabase, extracting audio, transcribing with OpenAI Whisper, generating SRT files, and burning subtitles into video using FFmpeg via Trigger's built-in extensions. Tasks are split for independent retry logic, and the useRealtimeRun hook streams progress updates to the UI. The Trigger dashboard provides full observability into task runs, logs, and subtask durations.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=I7HRuqEDDZc>

## Similar posts on daily.dev

- [Drain Payload’s Schedule Queue on Serverless, End to End](https://daily.dev/posts/drain-payload-s-schedule-queue-on-serverless-end-to-end-fvn0xqsmt) · Medium · 0 upvotes · 0 comments
- [Durable AI Workflows 2026: Inngest, Trigger.dev, Vercel Workflow](https://daily.dev/posts/durable-ai-workflows-2026-inngest-trigger-dev-vercel-workflow-un2tgyyqs) · Alex CloudStar · 0 upvotes · 0 comments
- [Vercel Workflows tutorial: build a durable background job](https://daily.dev/posts/vercel-workflows-tutorial-build-a-durable-background-job-27npsfaqy) · Flavio Copes · 0 upvotes · 1 comments

---

Tags: [#nextjs](https://daily.dev/tags/nextjs), [#serverless](https://daily.dev/tags/serverless)

[View this post on daily.dev](https://daily.dev/posts/next-js-trigger-is-the-combo-you-ve-been-waiting-for-background-jobs-solved--ruzyou3cu)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Next.js + Trigger Is The Combo You've Been Waiting For (Background Jobs = SOLVED)","url":"https://daily.dev/posts/next-js-trigger-is-the-combo-you-ve-been-waiting-for-background-jobs-solved--ruzyou3cu","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/next-js-trigger-is-the-combo-you-ve-been-waiting-for-background-jobs-solved--ruzyou3cu"},"datePublished":"2026-04-14T11:35:33.089Z","dateModified":"2026-04-14T11:35:51.517Z","description":"Building long-running background jobs in Next.js is tricky due to serverless function timeouts. Trigger.dev solves this by letting you define tasks outside the...","image":"https://i.ytimg.com/vi/I7HRuqEDDZc/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/I7HRuqEDDZc/sddefault.jpg","isAccessibleForFree":true,"articleSection":"ByteGrad","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ByteGrad","logo":"https://media.daily.dev/image/upload/s--UnJ6vKLR--/f_auto/v1732552127/logos/bytegrad","url":"https://daily.dev/sources/bytegrad"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/next-js-trigger-is-the-combo-you-ve-been-waiting-for-background-jobs-solved--ruzyou3cu","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"nextjs,serverless","timeRequired":"PT14M","video":{"@type":"VideoObject","name":"Next.js + Trigger Is The Combo You've Been Waiting For (Background Jobs = SOLVED)","description":"Building long-running background jobs in Next.js is tricky due to serverless function timeouts. Trigger.dev solves this by letting you define tasks outside the...","thumbnailUrl":"https://i.ytimg.com/vi/I7HRuqEDDZc/sddefault.jpg","uploadDate":"2026-04-14T11:35:33.089Z","duration":"PT14M","url":"https://api.daily.dev/r/RUZyoU3cu","embedUrl":"https://www.youtube.com/embed/I7HRuqEDDZc"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ByteGrad","item":"https://daily.dev/sources/bytegrad"},{"@type":"ListItem","position":3,"name":"Next.js + Trigger Is The Combo You've Been Waiting For (Background Jobs = SOLVED)"}]}
```

