-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Use server's own graphiql package instead of from CDN #295
Comments
Ironically, we're actually ahead of Anyway, I agree it would be a good idea to see if we can get it from npm, but that is a bit more complex because you need a build system, etc. Perhaps we can start by making a list of what we need to do to make this happen? |
Oh lol I just realized you sent that PR. But yeah, we essentially copied that logic from |
hi @ephemer, |
I think the main reason is to stay up to date with the newest version of GraphiQL, and not have to wait for the CDN url to be updated. Perhaps we can have an option in |
Oh yeah! That's easy and solves the problem, nice @stubailo |
cool @ephemer can you please open another issue for implementing this and close this instead. |
This would be a great project for contributor week btw 😉 |
@helfer sure, we have a deadline this week so I don't think I'll get to it but I'd be happy to give it a shot when I have a bit more time on my hands |
I still think this would be neat to implement. |
Hi, anyone working on this already, can I help out or I will start myself |
@jacobbogers or @luchillo17 please feel free to get started! I think this would be a great improvement. |
Definitely a good idea not only for when the cdn goes down but also for when working in remote locations without internet. |
this is related to #506 |
Does anyone want to sign up to get started on this? Shouldn't take more than a few hours to set up the build and make it run from a local setup. I'd say a script that just downloads the CDN version and inlines it into the package, or builds with Webpack, would be perfect. |
any news ? common |
is this a thing yet? |
There's a work in progress PR here: #673 please help! |
Apollo Server 2.0 ships with |
Using apollo-server@2.1.0 and following the getting started guide I get a graphql-playground instance using assets from an external CDN, so I am pretty sure this issue is still open. As above, there are more details in #1421 and I am working on a fix in #1734 |
I was incorrect above, this is indeed still an issue, but let's track it in #1421.. Thanks for your work in #1734 — we'll consider how to make that more permanent in Apollo Server, though I think your demonstration in #1734 (comment) is pretty close to what that will end up being (but less explicitly). |
…iant Update op-reg plugin to use graphVariant and add support for APOLLO_GRAPH_VARIANT
…iant Update op-reg plugin to use graphVariant and add support for APOLLO_GRAPH_VARIANT
…iant Update op-reg plugin to use graphVariant and add support for APOLLO_GRAPH_VARIANT
…iant Update op-reg plugin to use graphVariant and add support for APOLLO_GRAPH_VARIANT
graphql-server currently manages its own version of GraphiQL in package-internal code. Maybe I'm missing something but this seems unnecessary given we have npm/yarn.
Is there anything stopping us from serving the version of graphiql installed on the server, instead of doing this? That way we wouldn't need to manage the version separately to what is available on npm.
I realise this would involve serving files from the node server in some way, which is an anti-pattern in production, but I wouldn't expect the proposed (or present) method to be used in production as is anyway.
I'm interested in others' thoughts about this. It seems a shame to always be at least a little bit behind the cutting edge in terms of Developer Experience just because we're using graphql-server.
The text was updated successfully, but these errors were encountered: