-
Notifications
You must be signed in to change notification settings - Fork 12k
adding my own env files not working #8654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting this issue. However, this issue is a duplicate of an existing issue #7305. Please subscribe to that issue for future updates. |
@sree526 did you ever find a fix? I'm stuck on this issue also. |
Well, actually the issue was with angular cli version. When I updated it to
newest version in my project folder by using command npm install
@angular/cli@latest --save . The env files started working :-).
…On Dec 19, 2017 00:24, "Nicholas Serra" ***@***.***> wrote:
@sree526 <https://github.com/sree526> did you ever find a fix? I'm stuck
on this issue also.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8654 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARWoWGQeFjCb67gdMcABSQxu54KXqUPxks5tBrTVgaJpZM4QsudG>
.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I would like to have different api endpoints based on environment. So i have created qa environment file in src/environments/environment.qa.ts and added that name to environments object in angular cli.json like "qa":'environments/environment.qa.ts' and while doing ngserve --env=qa its still taking dev evniroment url. I have imported enviroment in my app.component.ts like import { environment } from './environments/enviroment' and tried to access that api end point from console. What am i doing wrong;
The text was updated successfully, but these errors were encountered: