Start creating Jobs in 5 minutes in your Astro project.
Need to create a new Astro project to add Trigger.dev to?
create-astro
command in your terminal then continue with this quickstart guide as normal:DEV
SERVER API key.
dev
command allows the Trigger.dev service to send messages to your site. This is required for registering Jobs, triggering them and running tasks. To achieve this it creates a tunnel (using ngrok) so Trigger.dev can send messages to your machine.You should leave the dev
command running when you're developing.In a new terminal window or tab run:--port 3001
to the end.Advanced: Run your Astro server together with the CLI
package.json
to run both the Astro server and the CLI dev
command together.concurrently
package:package.json
file’s dev
script.src/jobs/example.(ts/js)
.In there is this Job: