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

Does this work with wrangler preview? #17

Open
lfender6445 opened this issue Nov 15, 2019 · 3 comments
Open

Does this work with wrangler preview? #17

lfender6445 opened this issue Nov 15, 2019 · 3 comments

Comments

@lfender6445
Copy link

lfender6445 commented Nov 15, 2019

image
image

I can successfully preview the project, but hitting a wall when trying to contact the apollo server - the error that comes back seems to indicate a problem intrinsic to cloudflare worker previews?

@lfender6445
Copy link
Author

ive just discovered this works just fine with wrangler publish but am still not entirely certain why

@kristianfreeman
Copy link
Contributor

@lfender6445 – great question! i haven't tested it with wrangler preview since we changed some of how the preview service works. my guess is that because the preview URLs are dynamic, the graphiql preview might have some issues connecting to it. that being said, if it was making relative URL requests (/graphql vs `https://abcdef.cloudflareworkers.com/graphql), maybe that would be the fix. will look into this, thank you for filing an issue!

@lfender6445
Copy link
Author

lfender6445 commented Nov 15, 2019

thanks kristain! love your youtube videos by the way, i wish all programming tutorials were done in the same format (referring to these https://www.youtube.com/watch?v=GNkHWx7fSXE)

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