Skip to content

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

Closed
sree526 opened this issue Nov 28, 2017 · 4 comments
Closed

adding my own env files not working #8654

sree526 opened this issue Nov 28, 2017 · 4 comments

Comments

@sree526
Copy link

sree526 commented Nov 28, 2017

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;

@filipesilva
Copy link
Contributor

Thanks for reporting this issue. However, this issue is a duplicate of an existing issue #7305. Please subscribe to that issue for future updates.

@nicholasserra
Copy link

@sree526 did you ever find a fix? I'm stuck on this issue also.

@sree526
Copy link
Author

sree526 commented Dec 19, 2017 via email

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants