We provide a Netlify build plugin, netlify-plugin-inngest, that allows you to automatically deploy any found functions whenever your site is deployed to Netlify.
netlify-plugin-inngestas a dev dependency:
npm install --save-dev netlify-plugin-inngest# oryarn add --dev netlify-plugin-inngest
- Create or edit a
netlify.tomlfile at the root of your project with the following:
[[plugins]]package = "netlify-plugin-inngest"
Done! 🥳 Whenever your site is deployed, your functions hosted at
/api/inngest will be registered.
If you want to use a URL that isn't your "primary" Netlify domain, or your functions are served at a different path, provide either
path, or both as inputs in the same file:
[[plugins]]package = "netlify-plugin-inngest"[plugins.inputs]host = "https://my-specific-domain.com"path = "/api/inngest"