Skip to content

Commit 5c1a6d9

Browse files
techzealotNikaple
authored andcommitted
Update README.md
TypedConfigModule should not use async funtion,or the config will not work.
1 parent c7446a7 commit 5c1a6d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ If native loaders provided by `nest-typed-config` can't meet your needs, you can
495495
```ts
496496
TypedConfigModule.forRoot({
497497
schema: RootConfig,
498-
load: async () => {
498+
load: () => {
499499
return {
500500
host: '127.0.0.1',
501501
port: 3000,

0 commit comments

Comments
 (0)