/** * Next.js Framework Utilities * * Helpers and utilities for integrating Plyaz with Next.js applications. * * @example Config helper * ```typescript * import { withPlyazNextConfig } from '@plyaz/core/frameworks/nextjs'; * * // In next.config.ts * export default withPlyazNextConfig({ * experimental: { serverActions: { bodySizeLimit: '100mb' } }, * }); * ``` * * @example Route factory * ```typescript * import { createNextApiRoute } from '@plyaz/core/frameworks/nextjs'; * * // In app/api/users/[id]/route.ts * export const { GET, PATCH, DELETE } = createNextApiRoute({ * service: 'users', * handlers: { * GET: async (service, { params }) => service.getById(params.id), * PATCH: async (service, { params, body }) => service.update(params.id, body), * DELETE: async (service, { params }) => service.delete(params.id), * }, * }); * ``` */ export { withPlyazNextConfig, plyazServerExternalPackages, plyazWebpackClientFallbacks, plyazWebpackClientAliases, } from './config'; export { createNextApiRoute } from './route-factory'; export { extractQueryParams, extractJsonBody, safeExtractJsonBody, extractRouteParams, extractHeaders, extractHeader, extractBearerToken, } from './helpers'; //# sourceMappingURL=index.d.ts.map