pitcheye.dev← All 30 rules
severity: errorpack: inngestv1.0 core

inngest/missing-put-handler

Inngest serve() does not export `PUT`

npx @pitcheye/check . --pack inngest

whyItBreaks

Inngest syncs the app with your deployment over an out-of-band `PUT` request. Without the `PUT` export the sync fails, so functions are registered from an older build or not at all — the code you just deployed simply does not run, and the dashboard still shows the previous version as healthy.

✖ Bad — triggers errorfixtures/inngest-missing-put-handler/bad
export const { GET, POST } = serve({ client, functions });
✓ Good — passes checkfixtures/inngest-missing-put-handler/good
export const { GET, POST, PUT } = serve({ client, functions });

suggestedFix

Export all three: `export const { GET, POST, PUT } = serve({ client, functions })`.

explain_rule({"inngest/missing-put-handler"})

Agent & MCP JSON output contract

{
  "ruleId": "inngest/missing-put-handler",
  "pack": "inngest",
  "severity": "error",
  "file": "apps/web/src/inngest/functions.ts",
  "line": 6,
  "message": "`export const { GET, POST } = serve({...})` with no `PUT`",
  "whyItBreaks": "Inngest syncs the app with your deployment over an out-of-band `PUT` request. Without the `PUT` export the sync fails, so functions are registered from an older build or not at all — the code you just deployed simply does not run, and the dashboard still shows the previous version as healthy.",
  "suggestedFix": "Export all three: `export const { GET, POST, PUT } = serve({ client, functions })`.",
  "docsUrl": "https://pitcheye.dev/rules/inngest-missing-put-handler"
}

Markdown: curl -H "Accept: text/markdown" https://pitcheye.dev/rules/inngest-missing-put-handler

raw markdown
# inngest/missing-put-handler

- **severity:** error
- **pack:** inngest
- **docs:** https://pitcheye.dev/rules/inngest-missing-put-handler

## whyItBreaks

Inngest syncs the app with your deployment over an out-of-band `PUT` request. Without the `PUT` export the sync fails, so functions are registered from an older build or not at all — the code you just deployed simply does not run, and the dashboard still shows the previous version as healthy.

## bad

```ts
export const { GET, POST } = serve({ client, functions });
```

## good

```ts
export const { GET, POST, PUT } = serve({ client, functions });
```

## suggestedFix

Export all three: `export const { GET, POST, PUT } = serve({ client, functions })`.

## commands

```bash
npx @pitcheye/check . --pack inngest
```

```json
{"tool":"explain_rule","arguments":{"ruleId":"inngest/missing-put-handler"}}
```
← inngest/nested-step-runBack to rule cataloginngest/missing-retry-or-idempotency →