-
Notifications
You must be signed in to change notification settings - Fork 275
restore swapi server (netlify functions redux) #162
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
Conversation
569d8c7
to
12c5f8f
Compare
ab972fa
to
d8d1c03
Compare
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
ecf52b6
to
886989d
Compare
- update dependencies only as needed - add handler using aws-express-serverless (not ideal but it works!) - move code around to share with a local, normal express server - add build step for netlify-lambda script - add netlify deploy previews - upgrade GraphiQL version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this looks good to me - just needs to be green again. Deploy preview looks 👍
</style> | ||
<link rel="icon" href="favicon.ico"> | ||
<link href="//cdn.jsdelivr.net/npm/graphiql@0.11.11/graphiql.css" rel="stylesheet" /> | ||
<link type="text/css" href="//unpkg.com/graphiql@0.17.0/graphiql.css" rel="stylesheet" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quite the jump
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, it works! yay
@orta thanks so much! this is gonna help me sleep a little better at night haha |
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
yarn
check out the deploy preview below if you want to see it in action 🚀 ex