Prerequisites
- A Vercel team on the Pro or Enterprise plan. Vercel offers drains on these plans only.
- An ingest key and the project ID. See Create an ingest key.
Connect Vercel from Squasher
Squasher can create and manage the drains for one Vercel project:- Open your project in Squasher and select Settings in the sidebar, then the Integrations tab.
- On the Vercel card, select Connect, then install the Squasher integration in Vercel.
- Back in Squasher, choose the Vercel project in Vercel project and select Connect project. When the integration can see only one Vercel project, Squasher chooses it for you.
Set up the drain by hand
- In Vercel, open Team Settings and select Drains.
- Select Add Drain, then choose Logs.
- Choose the projects, log sources, and environments to send.
- Choose Custom Endpoint and set Endpoint URL to
https://ingest.squasher.ai/v1/drain/vercel/<project-id>. - Set Format to NDJSON or JSON.
- In Custom Headers, add one line:
x-squasher-key: <your ingest key>. - Leave Signature Verification Secret empty, then select Create Drain.
What Squasher keeps from each record
Squasher does not read
statusCode. A request that returns 500 without an error-level log line
does not create an issue.
Verify
- Select Test on the drain in Vercel. Squasher answers
200when the URL and key are correct, and401or403when they are not. - Deploy a route that calls
console.error("Squasher test error"), and open it once. - In Squasher, select Issues in the sidebar. The test error is at the top of the list.
Limits
- Squasher drops the Vercel
environmentfield, so issues from the drain have no environment. Automatic AI triage does not run on them. Select Run triage in the Squasher triage card on the issue. - Squasher does not check the
x-vercel-signatureheader. The ingest key protects the endpoint. - The drain carries logs only. For traces, instrument your app with OpenTelemetry.
Next steps
Next.js SDK
Capture server errors with stack traces.
Drain record format
See how Squasher reads every drain record.
Read AI triage
Learn what the triage summary tells you.
Set up notifications
Send new issues to Slack, PagerDuty, or email.