N
Nuxt3w ago
Eric

netlify rate limiting

Hi! I'm trying to set up netlify rate limiting in my nust app. Does anybody know where I should export the config object from?
export const config = {
path: "/api/auth/*",
rateLimit: {
windowLimit: 60,
windowSize: 60,
aggregateBy: ["ip", "domain"]
}
}
export const config = {
path: "/api/auth/*",
rateLimit: {
windowLimit: 60,
windowSize: 60,
aggregateBy: ["ip", "domain"]
}
}
I tried exporting it from /server/api/auth/login.post.ts but it doesnt work. docs say the rules should be listed in the post processing section of the deploy logs, but it's not there. any idea ? thsnks !
2 Replies
kapa.ai
kapa.ai3w ago
Hi @Eric. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources provided do not contain information about configuring Netlify rate limiting specifically within a Nuxt app, nor do they mention where to export the Netlify config object for rate limiting to work. The sources discuss importing utility functions into Netlify Edge Functions and general usage of Netlify Edge Functions with Nuxt, but do not address rate limiting configuration or deployment log behavior in this context Import Nuxt3 utility function into Netlify Edge Function. If you need further help, I recommend consulting the official Netlify documentation or support channels for guidance on rate limiting configuration with Nuxt. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3w ago
<@776374982275497985> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?