Skip to content

Conversation

acao
Copy link
Member

@acao acao commented Nov 27, 2019

Now we can merge this PR, and https://swapi-graphql.netlify.com is live 🌍 at graphiql.org/swapi-graphql :D

here's where you can learn about the new features:
graphql/swapi-graphql#162

I'm pretty sure the order of the last two rules will be fine. If the last one doesn't work, it will still work

/swapi-graphql/graphql https://swapi-graphql.netlify.com/.netlify/functions/index 200

this just 200 redirects (non permanent?) which essentially is netlify terms for what nginx is a proxy_path

so this will just make graphiql.org/swapi-graphql/graphql an alias for the lambda endpoint. see the PR's develop preview before it's merged if you want to see that default lambda path in action for yourself

There's will be a new build for swapi-graphql at netlify once graphql/swapi-graphql#162 is merged, we can merge this to take it live 🌍 

I'm pretty sure the order of the last two rules will be fine. If the last one doesn't work, it will still work

```
/swapi-graphql/graphql https://swapi-graphql.netlify.com/.netlify/functions/index 200
```
this just 200 redirects (non permanent?) which essentially is netlify terms for what nginx is a proxy_path

so this will just make `graphiql.org/swapi-graphql/graphql` an alias for the lambda endpoint. see the PR's develop preview before it's merged if you want to see that default lambda path in action for yourself
@acao acao changed the title New url for swapi-graphql redirects New swapi-graphql service using netlify functions Nov 27, 2019
Copy link
Member

@orta orta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh clever, so we just switch out the requests under the hood 👍

@acao
Copy link
Member Author

acao commented Nov 28, 2019

@orta feel free to merge when you get a chance, I don't have permissions to merge for this repo

@acao
Copy link
Member Author

acao commented Nov 28, 2019

this needs one more line for the query strings

so that we can support query parameters for http service requests. 
This will ensure we can support GET requests, and any other query parameters that might be used by express-graphql
@acao
Copy link
Member Author

acao commented Nov 29, 2019

@orta added the additional line. after discussion with @IvanGoncharov we may move the schema to https://swapi.graphql.org, so I need to request a CNAME record for that subdomain

however, we can handle that in another PR later! so please merge away whenever you get a chance, no hurry 👍 . I modified the gh-pages build for the new URL. thanks for helping with this!

@orta
Copy link
Member

orta commented Nov 29, 2019

Cool 👍

@orta orta merged commit 4507489 into graphql:source Nov 29, 2019
Dipeshwagle pushed a commit to Dipeshwagle/graphql.github.io that referenced this pull request Aug 18, 2020
New swapi-graphql service using netlify functions
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 this pull request may close these issues.

2 participants