From 2bba53ae32259590f6d33a6a4d87572b9cd0ab7f Mon Sep 17 00:00:00 2001 From: "Stanislav (Stanley) Modrak" <44023416+smith558@users.noreply.github.com> Date: Thu, 10 Jul 2025 14:40:17 +0100 Subject: [PATCH] Add fastify dependency --- content/openapi/introduction.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/openapi/introduction.md b/content/openapi/introduction.md index ac6d1ce992..91c9f726f4 100644 --- a/content/openapi/introduction.md +++ b/content/openapi/introduction.md @@ -10,6 +10,12 @@ To begin using it, we first install the required dependency. $ npm install --save @nestjs/swagger ``` +> warning **Warning** When using `fastify` you also need to instal `@fastify/static`: +> +> ```bash +> $ npm install --save @fastify/static +> ``` + #### Bootstrap Once the installation process is complete, open the `main.ts` file and initialize Swagger using the `SwaggerModule` class: