[FEAT] use runtime config
Problem: in our project we build nuxt in docker image, and we matomo vars in .env because of our architecture we cannot provide .env during build time, and thus we have to do hack specially for that plugin
Solution: Would be nice, if that plugin would use nuxt runtime config https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-runtime-config/
Yes, supporting runtime config would be nice. Here's the documentation for how @nuxt/sentry allows configuring it
An alternative would be to do what other modules which is to allow not specifying siteId in the configuration object, and instead falling back to a pre-specified process.env value read at runtime (i.e. is not baked in by nuxt/webpack). Something like process.env.MATOMO_SITE_ID. This is how @nuxt/sentry does it too
This fork does exactly that: https://github.com/zecar/nuxt-matomo :fire: