UNPKG

next-csrf

Version:

CSRF mitigation library for Next.js

10 lines (9 loc) 338 B
import Server, { ServerConstructor } from '../next-server/server/next-server'; declare type NextServerConstructor = ServerConstructor & { /** * Whether to launch Next.js in dev mode - @default false */ dev?: boolean; }; declare function createServer(options: NextServerConstructor): Server; export default createServer;