DEV Community

loading...

Discussion on: Hide environment variables in your StencilJS project

Collapse
daviddalbusco profile image
David Dal Busco Author

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!