feat: plan limits

This commit is contained in:
Mythie
2023-10-15 20:26:32 +11:00
parent f75f191a9a
commit c343e8a221
31 changed files with 750 additions and 272 deletions

View File

@ -0,0 +1,9 @@
import { NextRequest } from 'next/server';
export const toNextRequest = (req: Request) => {
const headers = Object.fromEntries(req.headers.entries());
return new NextRequest(req, {
headers: headers,
});
};