Skip to content

Commit f9a52df

Browse files
committed
docs(techniques): renamed fastify plugins
1 parent 5712aaa commit f9a52df

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

content/techniques/compression.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ app.use(compression());
2727
If using the `FastifyAdapter`, you'll want to use [fastify-compress](https://github.com/fastify/fastify-compress):
2828

2929
```bash
30-
$ npm i --save fastify-compress
30+
$ npm i --save @fastify/compress
3131
```
3232

3333
Once the installation is complete, apply the fastify-compress middleware as global middleware.
3434

3535
```typescript
36-
import compression from 'fastify-compress';
36+
import compression from '@fastify/compress';
3737
// somewhere in your initialization file
3838
await app.register(compression);
3939
```
@@ -46,4 +46,4 @@ To specify encodings, provide a second argument to `app.register`:
4646
await app.register(compression, { encodings: ['gzip', 'deflate'] });
4747
```
4848

49-
The above tells `fastify-compress` to only use gzip and deflate encodings, preferring gzip if the client supports both.
49+
The above tells `@fastify/compress` to only use gzip and deflate encodings, preferring gzip if the client supports both.

content/techniques/cookies.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ findAll(@Res({ passthrough: true }) response: Response) {
5858
First install the required package:
5959

6060
```shell
61-
$ npm i fastify-cookie
61+
$ npm i @fastify/cookie
6262
```
6363

64-
Once the installation is complete, register the `fastify-cookie` plugin:
64+
Once the installation is complete, register the `@fastify/cookie` plugin:
6565

6666
```typescript
67-
import fastifyCookie from 'fastify-cookie';
67+
import fastifyCookie from '@fastify/cookie';
6868

6969
// somewhere in your initialization file
7070
const app = await NestFactory.create<NestFastifyApplication>(

0 commit comments

Comments
 (0)