Describe the bug
When declared as a constant, the envvar can't be used in string concatenation (string interpolation). For example, say you have an authenticated endpoint. When envvars are constants, you can't use it when creating an alias.
The problem is the script in the template, ./scripts/generate-env.js, generates const for each envvar, but it should be an alias.
To Reproduce
Steps to reproduce the behavior:
-
In a new DA - TSP project, try to concat an envvar with a string... observe error
-
Change the variable to a constant, but when used in some TSP objects, like OAuth2Auth... observe error
Expected behavior
If the envvar generated was an alias, all works:
VS Code Extension Information (please complete the following information):
Describe the bug
When declared as a constant, the envvar can't be used in string concatenation (string interpolation). For example, say you have an authenticated endpoint. When envvars are constants, you can't use it when creating an
alias.The problem is the script in the template, ./scripts/generate-env.js, generates
constfor each envvar, but it should be analias.To Reproduce
Steps to reproduce the behavior:
In a new DA - TSP project, try to concat an envvar with a string... observe error
Change the variable to a constant, but when used in some TSP objects, like
OAuth2Auth... observe errorExpected behavior
If the envvar generated was an
alias, all works:VS Code Extension Information (please complete the following information):