Is it like one config for many components or just one? if just one, maybe you can add a Prop() to it an use it to inject the configuration according the environment where it is used?
Alternatively, maybe read the configuration with a fetch from your component assuming that your configuration is present in the dist folder and that the path is know?
Just spontaneous idea, not sure it fits well your use case though, let me know!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Is it like one config for many components or just one? if just one, maybe you can add a
Prop()
to it an use it to inject the configuration according the environment where it is used?Alternatively, maybe read the configuration with a
fetch
from your component assuming that your configuration is present in the dist folder and that the path is know?Just spontaneous idea, not sure it fits well your use case though, let me know!