blog
blog copied to clipboard
Trigger.dev blog articles
Source code for Trigger.dev blog articles
Check out our blog for all our articles or follow us to be notified when new blogs are release.
Content Guidelines
All blog post content should following the guidelines:
- Don't use tabs for indenting code and use 2 spaces (not 4).
- Use TypeScript instead of JavaScript, unless the article is specifically about JavaScript
- Favor specifying a Zod schema when using
eventTriggerDocs here - Use
io.runTaskor an integration whenever doing any communication with outside services or databases, especially when there's a possibility that runs will be resumed. See our Resumability docs for more. - Use Trigger.dev integrations instead of native SDKs.
- When using
io.logger.info, use the second parameter to include additional data with the log:
await io.logger.info("This is a log message with additional data", {
foo: "bar",
});
io.sendEventmust be awaited