-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Describe the bug
I would like to use my config service so that we can take the base url in the file. env
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
I would like to add a use factory so that we can use the config service
example:
ClientsModule.registerAsync([
{
imports: [ConfigModule],
name: 'BOILER_SERVICE',
useFactory: async (configService: TypedConfigService) => ({
transport: Transport.TCP,
options: {
host: configService.get('BOILERPLATE_MICROSERVICE.host'),
port: configService.get('BOILERPLATE_MICROSERVICE.port'),
},
}),
inject: [TypedConfigService],
extraProviders: [TypedConfigService],
},
]),
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers