Vercel starter module
Shared hosting library
Centralizes environment validation, caching rules, and request helpers for Vercel.
- Files
- 7
- Lines
- 427
- Languages
- TypeScript
Included files
This page lists paths and purposes, not source contents.
src/lib/app-adapter.ts
Connects generic Vercel handlers to your app's identity, durable data, and domain reactions.
TypeScript
110 lines
src/lib/cache.ts
Builds public CDN responses and private authenticated responses.
TypeScript
44 lines
src/lib/demo-identity.ts
Resolves the local demo customer from a bearer token created by seed:demo.
TypeScript
26 lines
src/lib/demo-store.ts
Provides local demo records, claims, usage, and account state through globalThis.
TypeScript
82 lines
src/lib/env.ts
Reads and validates the settings used by handlers and setup checks.
TypeScript
71 lines
src/lib/types.ts
Defines the shared records and adapter operations used across the starter.
TypeScript
55 lines
src/lib/verify-signature.ts
Verifies a raw webhook body against the hexadecimal x-signature header.
TypeScript
39 lines