You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The approach in this repo works fine when building an app from my local machine, when I have an src/environments/environment.ts file.
In a CI environment though (Circle CI for example), there is no src/environments/environment.ts file as they are not committed to my repo. Instead, all environment variables are configured in the CircleCI interface and passed into the build container as OS environment variables.
When I try to build my app on the CI server instance:
ionic build --prod
I get an error:
Cannot find module '@app/env'.
Does this script load existing environment variables into the ENV object?
Can it work when there is no environment.ts present?
The text was updated successfully, but these errors were encountered:
The approach in this repo works fine when building an app from my local machine, when I have an
src/environments/environment.ts
file.In a CI environment though (Circle CI for example), there is no
src/environments/environment.ts
file as they are not committed to my repo. Instead, all environment variables are configured in the CircleCI interface and passed into the build container as OS environment variables.When I try to build my app on the CI server instance:
I get an error:
ENV
object?environment.ts
present?The text was updated successfully, but these errors were encountered: