How to configure rate-limit with fastify-adapter in nest js
问题 I Just started implementing API's Nest js and I am using Fastify adapter. I need help to configure Rate limit using FastifyAdapter in Nest JS. async function bootstrap() { const app = await NestFactory.create<NestFastifyApplication>( AppModule, new FastifyAdapter(), ); const limiter = fastifyRateLimit(fastify(), { timeWindow: 15 * 60 * 1000, // 15 minutes max: 100 // limit each IP to 100 requests per windowMs }, (err) => { }); app.use(limiter); await app.listen(configService.getPort()); }