Production-ready Next.js boilerplate with: - Runtime env validation (fail-fast on missing vars) - Feature-gated config (S3, Stripe, email, OAuth) - Docker + Coolify deployment pipeline - PostgreSQL + pgvector, MinIO S3, Better Auth - TypeScript strict mode (no ignoreBuildErrors) - i18n (en/es), AI modules, billing, monitoring Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
16 lines
463 B
TypeScript
16 lines
463 B
TypeScript
import * as z from "zod";
|
|
|
|
export const offsetPaginationSchema = z.object({
|
|
page: z.coerce.number().int().default(1),
|
|
perPage: z.coerce.number().int().default(10),
|
|
});
|
|
|
|
export type OffsetPaginationPayload = z.infer<typeof offsetPaginationSchema>;
|
|
|
|
export const cursorPaginationSchema = z.object({
|
|
cursor: z.string().optional(),
|
|
limit: z.coerce.number().int().default(10),
|
|
});
|
|
|
|
export type CursorPaginationPayload = z.infer<typeof cursorPaginationSchema>;
|