Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/llms-txt-hub / apps/web/lib/openpanel-server.ts |
| Date | Not specified in source |
| Repository | Janady13/llms-txt-hub |
| Revision | e0f4bf978d4df168369c7601d9c5f5ea89e84377 |
| Branch | main |
| Path or archive member | apps/web/lib/openpanel-server.ts |
| Original SHA-256 | d0001be03dbaa8e3e77d9f103ae9bb135428c73410507f1e20cf21c2f28934f0 |
| Git blob SHA | 7b7785dcd68df4b14ef5e0b3199d84b6a292db7a |
| Reading-copy SHA-256 | d0001be03dbaa8e3e77d9f103ae9bb135428c73410507f1e20cf21c2f28934f0 |
Recovered source transcript
Download complete source text ↓13 lines · 0.5 KB
import { opServer } from '@thedaviddias/analytics/server'
import { waitUntil } from '@vercel/functions'
/**
* Track a server-side event with OpenPanel.
* Uses Vercel's waitUntil to avoid blocking the response in serverless functions.
* Silently no-ops outside production.
*/
export function trackServerEvent(event: string, properties?: Record<string, unknown>) {
if (process.env.NODE_ENV !== 'production') return
waitUntil(opServer.track(event, properties ?? {}))
}