UNPKG

@alessiofrittoli/next-api

Version:
30 lines (28 loc) 1.4 kB
export { ErrorCode, Next } from './error/index.js'; export { LastMiddleware, Middleware, MiddlewareFactory, lastMiddleware } from './middlewares/index.js'; export { isPageReactFC, withAwaitedParams } from './page-wrappers/index.js'; export { OnRead, getRequestFiles, getRequestIp, readFormDataBody, readJsonBody } from './request/index.js'; export { N as NextResponse } from './NextResponse-dit4yHQK.js'; export { corsPreflight } from './response/index.js'; export { A as Api, C as CorsHeadersOptions, N as NextResponseProps, a as NextResponseStreamInput } from './types-Cxk-bdcN.js'; export { OnQuotaReachedHandler, withRateLimit } from './route-wrappers/index.js'; export { HttpCookie } from './utils/index.js'; export { P as Page } from './page-DAsxsEeP.js'; export { ParsedCookie, ParsedCookieMap, Priority, RawCookie, SameSite } from '@alessiofrittoli/web-utils/storage/Cookie'; import '@alessiofrittoli/exception/code'; import 'next/server'; import '@alessiofrittoli/chain-functions/types'; import 'next'; import '@alessiofrittoli/web-utils'; import '@alessiofrittoli/stream-reader/types'; import '@alessiofrittoli/exception'; import 'fs'; import 'node:stream/web'; declare global { namespace NodeJS { interface ProcessEnv { /** Defines the comma separated list of origins allowed to consume API routes. */ ALLOWED_API_ORIGINS?: string; } } }