Code based rate limiting rules in nuxt app

Hi !

I’m trying to set up some code based rate limiting rules in my nuxt app.

I tried this in /server/api/auth/login.post.ts :

```

export const config = {

path: "/api/auth/\*",

rateLimit: {

    windowLimit: 60,

    windowSize: 60,

    aggregateBy: \["ip", "domain"\]

}

}

```
but the rule doesnt show up in the deploy logs.
I suppose it’s because the whole nuxt app is bundled up into one single serverless function in netlify. so endpoints are NOT serverless functions.

How can I achieve this ? Is it even possible ?
thanks in advance !

project name: https://findstable.netlify.app

Nuxt needs to add support for it. You can file a feature request on Nuxt repo.