feature flags
This commit is contained in:
@@ -28,7 +28,7 @@ export const CoreModule = new ContainerModule((options) => {
|
||||
})
|
||||
.inSingletonScope();
|
||||
|
||||
// Config
|
||||
bind<string>(CONFIG_TOKEN)
|
||||
.toConstantValue(getWebsiteApiBaseUrl());
|
||||
// Config - bind as function to read env at runtime
|
||||
bind<() => string>(CONFIG_TOKEN)
|
||||
.toDynamicValue(() => () => getWebsiteApiBaseUrl());
|
||||
});
|
||||
Reference in New Issue
Block a user