-
-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HasuraModule with forRootAsync is not working #148
Comments
Hey @rigobcastro thanks for reporting this. I can confirm that the route isn't being mapped when using As a side note, much do you leverage the ConfigService in your current application? I'm working on a new package that prevents the need to use forRootAsync in these situations because the equivalent of a ConfigService will already be bound and globally available before NestJS DI system. This enables previously impossible patterns like dynamically configuring decorators as well. |
I found the issue. I'll have a new package version published later today just need to update some test cases so this is caught in the future |
Hey @rigobcastro thanks for reporting this. It should be fixed as of |
Thanks @WonderPanda for your fix. I use the configService to storage secret values via environment files trying to comply with methodology https://12factor.net/config. Your idea sounds great let me know if you want a tester. |
@rigobcastro If you're still interested in testing the new config service checkout https://github.com/golevelup/ts-ecosystem/tree/master/libs/profiguration It provides a number of benefits over the NestJS Configuration module that'll help you achieve 12factor:
|
When I import the HasuraModule with
forRoot
it worksBut when I import the module with
forRootAsync
it doesn't workI think it's something that I'm missing because no errors appears on the console just the RouteExplorer doesn't map the routes.
Thanks for your support.
The text was updated successfully, but these errors were encountered: