Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
TypedConfigModule should not use async funtion,or the config will not work.
  • Loading branch information
techzealot authored and Nikaple committed Jan 13, 2024
1 parent c7446a7 commit 5c1a6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ If native loaders provided by `nest-typed-config` can't meet your needs, you can
```ts
TypedConfigModule.forRoot({
schema: RootConfig,
load: async () => {
load: () => {
return {
host: '127.0.0.1',
port: 3000,
Expand Down

0 comments on commit 5c1a6d9

Please sign in to comment.