0adf41c7f0
* add cli init maxDuration to the api/trigger route for nextjs * refactor createTriggerRoute * move boxen log to createTriggerRoute function * refine detectNextVersion and versionNumberPattern regex to match the latest nextjs version * add tests for the detectNextVersion function * add changeset file * If the regex doesn't match, it returns null instead of throwing * Tweaked message about the max duration --------- Co-authored-by: Matt Aitken <matt@mattaitken.com>
✨ @trigger.dev/cli - Initialize your project to start using Trigger.dev
Trigger.dev is an open source platform that makes it easy to create event-driven background tasks directly in your existing project.
💻 Usage
To initialize your project using @trigger.dev/cli, run any of the following three commands and answer the prompts:
npm
npx @trigger.dev/cli@latest init
yarn
yarn dlx @trigger.dev/cli@latest init
pnpm
pnpm dlx @trigger.dev/cli@latest init