@c15t/middleware
v1.0.0
Published
<div align="center"> <img src="https://c15t.com/logo-icon.png" alt="c15t Logo" width="64" height="64" /> <p><strong>Transform privacy consent from a compliance checkbox into a fully observable system</strong></p>
Downloads
13
Readme
@c15t/middleware
Overview
The @c15t/middleware package provides middleware for Next.js to handle consent banner functionality.
Quick Start
1. Install the Package
# Using npm
npm install @c15t/middleware
# Using pnpm
pnpm add @c15t/middleware
# Using Yarn
yarn add @c15t/middleware2. Add the Middleware to Your App
import { type NextRequest, NextResponse } from 'next/server';
import c15tMiddleware from '@c15t/middleware/next';
export default async function middleware(request: NextRequest) {
await c15tMiddleware(request);
return NextResponse.next();
}Support
License
GNU General Public License v3.0
