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
Apollo-Client needs to know the url endpoint to hit. When I dont have a custom domain, I've been setting arbitrary ROOT_URLs. Arbitrary URLs worked fine with meteor apps, but apollo uses the ROOT_URL to connect (or you can give it a uri) but in both cases I have no idea what the URL will be until after the app is deployed. Is there anyway around this without using a custom domain?
Maybe I can run a method on startup to grab this.connection uri and reset the environment variable ROOT_URL?
or maybe vanilla js: window.location.hostname on client
The text was updated successfully, but these errors were encountered:
On May 7, 2017, at 9:57 AM, acomito ***@***.***> wrote:
Apollo-Client needs to know the url endpoint to hit. When I dont have a custom domain, I've been setting arbitrary ROOT_URLs. Arbitrary URLs worked fine with meteor apps, but apollo uses the ROOT_URL to connect (or you can give it a uri) but in both cases I have no idea what the URL will be until after the app is deployed. Is there anyway around this without using a custom domain?
Maybe I can run a method on startup to grab this.connection uri and reset the environment variable ROOT_URL?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Apollo-Client needs to know the url endpoint to hit. When I dont have a custom domain, I've been setting arbitrary ROOT_URLs. Arbitrary URLs worked fine with meteor apps, but apollo uses the ROOT_URL to connect (or you can give it a uri) but in both cases I have no idea what the URL will be until after the app is deployed. Is there anyway around this without using a custom domain?
Maybe I can run a method on startup to grab this.connection uri and reset the environment variable ROOT_URL?
or maybe vanilla js: window.location.hostname on client
The text was updated successfully, but these errors were encountered: