diff --git a/src/middleware.js b/src/middleware.js index dc1077a..564a6a3 100644 --- a/src/middleware.js +++ b/src/middleware.js @@ -12,7 +12,7 @@ const ratelimit = new Ratelimit({ // Define which routes you want to rate limit export const config = { - matcher: '/', + matcher: '/api/:path*', }; export default async function middleware(request) {