Skip to content

Commit 1e944f9

Browse files
Updated import from fastify-compress
As Fastify v3 changed from named export to default export, the previous instruction doesn't work anymore. More information here: nestjs/nest#5552
1 parent 58e409b commit 1e944f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/techniques/compression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $ npm i --save fastify-compress
3333
Once the installation is complete, apply the fastify-compress middleware as global middleware.
3434

3535
```typescript
36-
import * as compression from 'fastify-compress';
36+
import compression from 'fastify-compress';
3737
// somewhere in your initialization file
3838
app.register(compression);
3939
```

0 commit comments

Comments
 (0)