Skip to content

Latest commit

 

History

History
84 lines (56 loc) · 1.78 KB

File metadata and controls

84 lines (56 loc) · 1.78 KB
title Astro Quick Start
sidebarTitle Astro
description Start creating Jobs in 5 minutes in your Astro project.

This quick start guide will get you up and running with Trigger.dev.

No problem, create a blank project by running the `create-astro` command in your terminal then continue with this quickstart guide as normal:
npx create-astro@latest
You can modify your `package.json` to run both the Astro server and the CLI `dev` command together.
  1. Install the concurrently package:
npm install concurrently --save-dev
pnpm install concurrently --save-dev
yarn add concurrently --dev
  1. Modify your package.json file's dev script.
//...
"scripts": {
  "dev": "concurrently --kill-others npm:dev:*",
  //your normal astro dev command would go here
  "dev:astro": "astro dev",
  "dev:trigger": "npx @trigger.dev/cli dev",
  //...
}
//...

The CLI init command created a simple Job for you. There will be a new file src/jobs/example.(ts/js).

In there is this Job:

If you navigate to your Trigger.dev project you will see this Job in the "Jobs" section:

Your first Job