We can probably remove the serverConfig and clientConfig from the moduleOptions to rely on the private and public runtime config.
We can also change the type of the public applicationinsihgts from Snippet to IConfiguration & IConfig.
The server side config would then fallback on runtimeConfig.public.applicationInsights.connectionString if the connection string isn't setup within the private runtime config
Currently the configuration is split between:
We can probably remove the serverConfig and clientConfig from the moduleOptions to rely on the private and public runtime config. We can also change the type of the public applicationinsihgts from
Snippet
toIConfiguration & IConfig
.The server side config would then fallback on
runtimeConfig.public.applicationInsights.connectionString
if the connection string isn't setup within the private runtime config