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

@graphql-yoga/render-graphiql: still request to other domain while it is recommended for offline usage #2443

Closed
Tracked by #1358
joshuaavalon opened this issue Feb 16, 2023 · 2 comments

Comments

@joshuaavalon
Copy link

Describe the bug

In GraphiQL, it is recommended to use @graphql-yoga/render-graphiql for offline usage.

However, the favicon is still requesting to GitHub.

<link
rel="icon"
href="https://github.com/raw/dotansimha/graphql-yoga/main/website/public/favicon.ico"
/>

Your Example Website or App

https://github.com/dotansimha/graphql-yoga/blob/e77c4433aa3e9f19708bd03a41e5adf7ecf6b4f9/packages/render-graphiql/src/index.ts

Steps to Reproduce the Bug or Issue

import { createYoga } from 'graphql-yoga'
import { renderGraphiQL } from '@graphql-yoga/render-graphiql'

const yoga = createYoga({ renderGraphiQL })

Expected behavior

No request to other domains.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • NodeJS: 18
  • @graphql-yoga/render-graphiql version(s): 3.5.1

Additional context

No response

@n1ru4l
Copy link
Collaborator

n1ru4l commented Feb 16, 2023

Hey @joshuaavalon! You wanna take care of this? It should be possible to inline it, see https://stackoverflow.com/a/68051929/4202031

@ardatan
Copy link
Collaborator

ardatan commented Mar 6, 2023

Available in the latest release!

@ardatan ardatan closed this as completed Mar 6, 2023
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

Successfully merging a pull request may close this issue.

3 participants