@drangis-tech/next-adapter
v1.0.1
Published
Next.js adapter for @drangis-tech/devpanel
Maintainers
Readme
@bril/next-adapter
Next.js API route handler for @bril/devpanel.
Installation
npm install -D @bril/next-adapterUsage
Create an API route in your Next.js app:
// app/api/__bril/apply-change/route.ts
export { POST } from "@bril/next-adapter";That's it! The adapter will handle file writes using the design map at .bril/design-map.json.
Requirements
- Next.js 14+ (App Router)
.bril/design-map.jsonmust exist (create withnpx bril gen-map)
Documentation
See the main documentation for complete setup instructions.
