-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lambda, cloud functions: change default path back to
/
(#5497)
In Apollo Server 2, none of the serverless integrations paid much attention to the HTTP request path (other than for health checks). In AS3 we rewrote the Lambda and GCF integrations on top of `apollo-server-express` so they inherited ASE's behavior of only responding under `/graphql`. This doesn't make that much sense for serverless integrations, where paths are typically specified in the API Gateway (etc) configuration, and where functions typically do one thing. (Frankly, it doesn't make much sense for a default path to be built in to the framework integrations either rather than letting you specify the path when you attach the middleware to your app, but changing that in AS3 would have been one backwards-incompatible change too many). So we're going to change how AS3 works by saying that serverless integrations serve on `/`. This is technically incompatible with 3.0.0 but hey, it just came out, and this is more compatible with AS2. Improve some other docs while we're at it. Fixes #5472.
- Loading branch information
Showing
6 changed files
with
47 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2a3dd2e
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.
Oops, should have referenced #5462, not #5472.