Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 438 Bytes

File metadata and controls

20 lines (14 loc) · 438 Bytes

@objectstack/nextjs

The official Next.js adapter for ObjectStack.

Features

  • Works with App Router (app/api/...)
  • Server Actions support (Planned)
  • Type-safe integration

Usage

// app/api/[...objectstack]/route.ts
import { createRouteHandler } from '@objectstack/nextjs';
import { kernel } from '@/lib/kernel';

const handler = createRouteHandler({ kernel });

export { handler as GET, handler as POST };