Skip to content

Commit

Permalink
ar(fix) disable kv (cost)
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 31, 2024
1 parent 132df83 commit 76de1d0
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 @@ -37,9 +37,9 @@ export default async function middleware(request: NextRequest) {
if (origin !== process.env.MAIN_URL) {
headers['Access-Control-Allow-Origin'] = allowedOrigins[origin] || 'https://www.dreampip.com';
}
const response = next();

// You could alternatively limit based on user ID or similar
// 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 76de1d0

Please sign in to comment.