Skip to content

Commit

Permalink
ar(fix) [DPCP-62]: Consolidate Domain
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 7, 2024
1 parent 4b2205e commit 2f6e911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const headers: Record<string, any> = {

export default async function middleware(request: NextRequest) {
// You could alternatively limit based on user ID or similar
const response = NextResponse.next();
const response = next();
const ip = ipAddress(request) || '127.0.0.1';

const { success, pending, limit, reset, remaining } = await ratelimit.limit(ip);
Expand Down

0 comments on commit 2f6e911

Please sign in to comment.