Hello, I’m trying to configure the new Environment system, although I have configured my own by creating a custom webpack config.
But I want to use the new one, the problem is. It was not clear how the files will be, or how to read the variables from my environment. By read I mean, how to access them in other typescript files (Though the way we read process.env from node.js).
The new system mentioned in: https://github.com/ionic-team/ionic-app-scripts#environments
It says: Create in the root of the app the files .env.dev and .env.prod, but it doesn’t says what is the format(language/syntax) to use in them.
In my current system I have 3 files to configure the environment, all of them are Typescript files.
Within the current system, is it possible to declare a base configuration with all default values such as appVersion, and then create another environment files that override them depending whenever it is dev or prod ?
What is the syntax to use within the .env files ?
Before messing up with the current project I want to understand the new system .
Many thanks !