✦ For Vercel · Next.js · Edge Functions · Middleware ✦

01Kill the 1-hour wall

Stop letting Vercel
swallow your logs.

Vercel keeps dashboard logs for about one hour. FlareLog captures, structures, and stores your Next.js, Serverless, and Edge logs for days — with a minimal SDK install and zero config.

$npm install @flarelog/sdk
Vercel Dashboard
FlareLog
Logs older than 60 minutes
--:--:--INFOPOST /api/checkout 200
--:--:--ERRORStripe webhook failed
--:--:--WARNFunction duration 9.8s

Logs Expired

Upgrade to Pro for longer retention

Live stream90-day retention
nowERRORStripe webhook signature mismatch: sig_abc123
12sWARNSlow query: 380ms on User.findUnique
45sINFOGET /blog/edge-functions 200 — 42ms
1mERRORwaitUntil rejected: fetch during function freeze
3mWARNBot traffic spike: 12k requests / 5 min
5mINFOPOST /api/checkout 200 — 156ms

90d

retention on Pro

~3

lines to install

10k

free logs/mo

$19

flat Pro bucket

You shipped on Vercel. But at 2am your function errors and the logs are already gone.

Vercel's built-in logging is fine for quick checks. It's not built for incident response, cost debugging, or asking your AI why a production checkout failed. FlareLog is.

02Zero-config setup

One minimal SDK.
Three minutes to full observability.

No OpenTelemetry acrobatics. No heavy runtime dependencies. Pick the wrapper that matches your Vercel stack.

1

Install the SDK

Run npm install @flarelog/sdk. One package covers Next.js, Vercel Serverless, Edge, and Middleware.

2

Set your API key

Add FLARELOG_API_KEY as a Vercel environment variable. The SDK auto-detects Vercel's runtime env vars.

3

Wrap your handler

Use withFlareLog for Next.js, or withVercelServerless / withVercelEdge for raw Vercel routes.

4

Connect MCP (optional)

Paste the MCP config into Cursor, Claude Desktop, or Lovable and ask your AI "why did /api/checkout fail?" using live production logs.

pages/api/checkout.ts
import { flarelog } from "@flarelog/sdk";
import { withFlareLog } from "@flarelog/sdk/next";

const logger = flarelog({ apiKey: process.env.FLARELOG_API_KEY });

export default withFlareLog(logger, async (req, res) => {
  req.logger.info("Checkout started", { cartId: req.body.cartId });

  const payment = await stripeCheckout(req.body);
  req.logger.info("Payment complete", { paymentId: payment.id });

  res.json({ ok: true });
});
.env.local / Vercel dashboard
# Add to your Vercel project
vercel env add FLARELOG_API_KEY

# or paste in the dashboard
FLARELOG_API_KEY=fl_your_api_key
03Core pillars

Built for Vercel's
serverless blind spots

Retention

Days of searchable logs

Stop losing context after one hour. FlareLog gives you 7 days free and 90 days on Pro so you can debug last week's incident without replaying traffic.

Search

Deep JSON querying

Filter by stripeEvent, Prisma query, App Router path, or any nested field. Vercel's text-only search can't do that.

Async

No dropped background logs

Background work like webhooks and waitUntil often vanish when a serverless function freezes. FlareLog flushes them before the invocation ends.

04Predictable pricing

Traffic spikes shouldn't
punish your observability bill.

Vercel meters observability events alongside requests. One bot swarm or Product Hunt launch can inflate both. FlareLog buckets your logs for a flat $19/mo up to 2M logs.

Capability
FlareLog
Vercel Logs
Log retention
7 days free, 90 days on Pro
~1 hour on Hobby; paid plans still limited
Search / filtering
Full structured JSON deep query
Basic text search
Async logs (waitUntil, background jobs)
Captured reliably via SDK flush
Dropped when function freezes
Pricing during traffic spikes
$19/mo Pro flat bucket up to 2M logs
Event-based metering → bill shock
Cost burn dashboard
Real-time per-request cost alerts
Not available
AI-native debugging
MCP server for Cursor / Claude / Lovable
Browser-only workflow

Why it matters

Bot traffic

A scraper hitting every route can generate millions of log events. FlareLog's Pro bucket absorbs that instead of multiplying your bill.

Why it matters

Launch day

Product Hunt traffic is a good problem — unless your logging bill scales linearly with it. Flat-rate monitoring keeps launches stress-free.

Why it matters

DDoS resilience

You can't stop every attack, but you can stop one from turning into a five-figure observability invoice. Your costs stay bounded.

05AI-Native debugging

Ask your AI why it broke.
In the editor.

FlareLog's MCP server connects Cursor, Claude Desktop, or Lovable Agent to your real Vercel logs. No browser tab, no manual grep, no copy-pasting stack traces.

  • "Show me every Stripe webhook failure today"
  • "Why is /api/slow 500ing in production?"
  • "List all error spikes in the last hour"
  • One JSON config, works everywhere
Connect MCP server
cursor settings.json
{
  "mcpServers": {
    "flarelog": {
      "url": "https://mcp.flarelog.dev",
      "headers": {
        "Authorization": "Bearer fl_your_api_key"
      }
    }
  }
}

↑ Paste into Cursor, Claude Desktop, or Lovable Connectors. Done.

06FAQ

Questions Vercel users
actually ask

Does this replace Vercel Analytics or Monitoring?

No — it complements them. Vercel gives you traffic and Web Vitals. FlareLog gives you searchable structured logs, error grouping, cost burn alerts, and AI-native debugging.

Will this slow down my Vercel functions?

The SDK adds sub-millisecond overhead. Logs are batched and flushed asynchronously, so request latency stays untouched.

Does it capture Edge Function logs too?

Yes. Use withVercelEdge for Edge Functions and Middleware. It runs natively on the Edge runtime with zero dependencies.

What about Next.js App Router?

Use withFlareLog from @flarelog/sdk/next. It works for API routes, route handlers, and server actions on any Node.js server including Vercel.

Do I need to change my Vercel subscription?

No. FlareLog is a separate observability service. You can stay on any Vercel tier and ship logs to FlareLog with one environment variable.

Can I try it for free?

Yes. Start with 10,000 logs/mo and 7-day retention on the free tier. Upgrade to Pro when you need 2M logs/mo, 90-day retention, Slack alerts, and the cost burn dashboard.

07Start today

Ship on Vercel.
Debug like you mean it.

Free tier includes 10,000 logs/month and all core features. No credit card. No marketplace integration needed — just install the SDK.