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

Question: Can I change the GraphQL endpoint? #339

Closed
stevewillard opened this issue Sep 18, 2015 · 2 comments
Closed

Question: Can I change the GraphQL endpoint? #339

stevewillard opened this issue Sep 18, 2015 · 2 comments
Labels

Comments

@stevewillard
Copy link

If I serve up a relay app on say, port 3000, is it possible to configure Relay to make GraphQL requests to another port, or an entirely different domain?

Thanks!

@wincent
Copy link
Contributor

wincent commented Sep 18, 2015

Thanks for your question!

We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of Relay.

Questions like yours deserve a purpose-built Q&A forum. Would you like to post this question to Stack Overflow with the tag #relayjs? We'll be happy to answer there. Post a link to your Stack Overflow question here, to so that we don't lose track of it.

https://stackoverflow.com/questions/ask?tags=relayjs

(Note that there are already some questions there related to configuring the network layer, such as this one, which may already answer your question for you.)

@wincent wincent closed this as completed Sep 18, 2015
@stevewillard
Copy link
Author

Thanks a bunch! That post actually answered my question. I didn't realize you could do:

Relay.injectNetworkLayer(
  new Relay.DefaultNetworkLayer('http://localhost:8080/graphql')
);

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

No branches or pull requests

2 participants