Skip to content

Commit

Permalink
Fix AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Jul 26, 2022
1 parent daafeb4 commit 56301fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/tests/aws-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ export const awsLambdaDeployment: DeploymentConfiguration<{
const lambdaGw = new awsx.apigateway.API('api', {
routes: [
{
path: '/',
path: '/graphql',
method: 'GET',
eventHandler: func,
},
{
path: '/',
path: '/graphql',
method: 'POST',
eventHandler: func,
},
Expand All @@ -100,6 +100,6 @@ export const awsLambdaDeployment: DeploymentConfiguration<{
console.log(`ℹ️ AWS Lambda Function deployed to URL: ${functionUrl.value}`)
// DOTAN: This is a known issue at the moment, this seems to fail to serve GraphiQL but POST does work.
// await assertGraphiQL(functionUrl.value)
await assertQuery(functionUrl.value)
await assertQuery(functionUrl.value + '/graphql')
},
}
1 change: 1 addition & 0 deletions examples/aws-lambda/lambda/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ const app = createYoga()

export const handler: Handler = configure({
app,
graphqlEndpoint: '/stage/graphql',
log: app.logger,
})

0 comments on commit 56301fd

Please sign in to comment.