Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trigger.dev/astro

Package Overview
Dependencies
Maintainers
3
Versions
336
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trigger.dev/astro

An Astro-native integration for Trigger.dev background jobs platform

  • 2.0.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
239
decreased by-27.58%
Maintainers
3
Weekly downloads
 
Created
Source

Trigger.dev native integration add-on for Astro

This Astro integration project provides a createAstroRoute function that can be used to create an API endpoint route in your Astro project for integration with the hosted Trigger.dev platform.

Usage

  1. Install the package:
npm install --save @trigger.dev/astro

Note: yes, right now this package isn't published to the npm registry, so you'll need to install it from my GitHub repository if you want to experiment with it. Hopefully this soon graduates into an official npm package from the Trigger.dev team 🙏🏼

  1. Import the package in a src/pages/api/trigger.js file and define the route endpoint as follows:
import { createAstroRoute } from "triggerdev-astro-integration";
import { client } from "../../../trigger.js";

export const post = createAstroRoute(client);

More information

See the Trigger.dev Astro example project repository for a working example of this integration.

License

MIT

Author

(c) Liran Tal liran@lirantal.com

FAQs

Package last updated on 24 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc