Changelog #75

·

Next.js quickstart guide

Get started with Trigger.dev and Next.js App Router, Pages Router or Server Actions with our quickstart guide.

James Ritchie

James Ritchie

Co-founder, Trigger.dev

Image forNext.js quickstart guide

We've put together a detailed guide on how to use Trigger.dev with Next.js. It covers the App Router, Pages Router, and Server Actions, so it covers any project setup. Check it out here: Next.js Quickstart Guide.

The guide will walk you through:

  • Step-by-step initial setup process using the Trigger.dev CLI
  • Setting up your secret key locally
  • Hello-world code examples for triggering a task in different Next.js setups:
    • App Router (using Route Handlers)
    • App Router with Server Actions
    • Pages Router (using API Routes)
  • Handling environment variables
  • Options for deploying your Trigger.dev tasks:
    • Manual deployment using CLI
    • Automated deployment with GitHub Actions
  • Troubleshooting section for common issues

The guide is designed to get you up and running quickly, regardless of your preferred Next.js routing method or deployment strategy. Give it a try and let us know how it goes!

Ready to start building?

Build and deploy your first task in 3 minutes.

Get started now
,