CodeVisionEvgen / imagekit-nestjs

Imagekit nestjs module
1 stars 0 forks source link

Feature Request: Add option to make ImageKitModule global #1

Closed RATCHAW closed 1 month ago

RATCHAW commented 1 month ago

Hi there,

I have a feature request that I believe would improve the usability of this module Currently, to use the ImageKitModule, we need to import it into every module where we want to use the ImageKitService. This can lead to repetitive code and make it harder to manage the module's usage across a large application.

Feature Request: It would be extremely helpful if there was an option to make the ImageKitModule global. This could be implemented in a way similar to how other NestJS modules handle global configuration. For example:


ImageKitModule.forRootAsync({
  isGlobal: true,
  useFactory: async (configService) => imageKitConfig(configService),
  inject: [ConfigService],
})
CodeVisionEvgen commented 1 month ago

Ok, I'll add it soon, thanks for using the module

пт, 2 серп. 2024, 21:58 користувач AYOUB BENDARSI @.***> пише:

Hi there,

I have a feature request that I believe would improve the usability of this module Currently, to use the ImageKitModule, we need to import it into every module where we want to use the ImageKitService. This can lead to repetitive code and make it harder to manage the module's usage across a large application.

Feature Request: It would be extremely helpful if there was an option to make the ImageKitModule global. This could be implemented in a way similar to how other NestJS modules handle global configuration. For example:

ImageKitModule.forRootAsync({ isGlobal: true, useFactory: async (configService) => imageKitConfig(configService), inject: [ConfigService],})

— Reply to this email directly, view it on GitHub https://github.com/CodeVisionEvgen/imagekit-nestjs/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWQCNPOUJDXJVTX2C2T5RDTZPPJGPAVCNFSM6AAAAABL5BVOQSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DKNJYG4YTGNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

CodeVisionEvgen commented 1 month ago

Close