aws-lambdagraphqlserverless-frameworkapollo-serverserverless-framework-offline

graphiql UI is broken for Serverless/AWS-Lambda setup


Here's a reference setup of AWS Lambda and Serverless and GraphQL that i'm following:

https://github.com/serverless/serverless-graphql-apollo

I'm trying with yarn run start-server-lambda:offline to start the project offline, it does start without any problems, but upon navigating to /graphiql, I get this:

enter image description here


Solution

  • There's a configuration problem somewhere.

    Basically, it's sending a request to /production/graphql when it should have been sending it to /graphql.