Skip to content
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

Not possible to use Angular-Cli Environment system to set server URL #39

Open
robatswitchcraft opened this issue Aug 7, 2017 · 2 comments

Comments

@robatswitchcraft
Copy link

Given that MCB is designed for use with tools like Angular-Cli, it should be possible to set the MCB's environment using the angular-cli environment files (without having to rebuild meteor-client.js).

e.g. in client's main.ts, something like.

Meteor.settings.DDP_DEFAULT_CONNECTION_URL = environment.ddp_connection_url;

At the moment, I have to either re-run meteor-client bundle (slow) or manually modify the meteor.client.js file (error prone).

@KeithGillette
Copy link

Agreed that this would be extremely useful. See issue #21.

@KeithGillette
Copy link

@robatswitchcraft: Please see the the recent comments on issue #21 for a work-around allowing use of Angular CLI environment files to set the DDP_DEFAULT_CONNECTION_URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants