You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/fundamentals/dynamic-modules.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,9 +181,9 @@ That nicely handles passing an `options` object to our dynamic module. How do we
181
181
182
182
```typescript
183
183
import { Injectable } from'@nestjs/common';
184
+
import*asfsfrom'node:fs';
185
+
import*aspathfrom'node:path';
184
186
import*asdotenvfrom'dotenv';
185
-
import*asfsfrom'fs';
186
-
import*aspathfrom'path';
187
187
import { EnvConfig } from'./interfaces';
188
188
189
189
@Injectable()
@@ -235,9 +235,9 @@ export class ConfigModule {
235
235
Now we can complete the process by injecting the `'CONFIG_OPTIONS'` provider into the `ConfigService`. Recall that when we define a provider using a non-class token we need to use the `@Inject()` decorator [as described here](https://docs.nestjs.com/fundamentals/custom-providers#non-class-based-provider-tokens).
By default, `@fastify/compress` will use Brotli compression (on Node >= 11.7.0) when browsers indicate support for the encoding. While Brotli can be quite efficient in terms of compression ratio, it can also be quite slow. By default, Brotli sets a maximum compression quality of 11, although it can be adjusted to reduce compression time in lieu of compression quality by adjusting the `BROTLI_PARAM_QUALITY` between 0 min and 11 max. This will require fine tuning to optimize space/time performance. An example with quality 4:
0 commit comments