Skip to content

apollo-server-express: Use req.originalUrl inside ApolloServer#2451

Merged
abernix merged 5 commits intoapollographql:release-2.5.0from
miguepintor:master
Apr 5, 2019
Merged

apollo-server-express: Use req.originalUrl inside ApolloServer#2451
abernix merged 5 commits intoapollographql:release-2.5.0from
miguepintor:master

Conversation

@miguepintor
Copy link
Copy Markdown

This pr solves a minor issue.

When the apollo server express app is part (or it is used) inside other express apps the endpoint used to mount the playground is in correct.
image

@apollo-cla
Copy link
Copy Markdown

@miguepintor: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

Copy link
Copy Markdown
Member

@abernix abernix left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

const outerApp = express();
outerApp.use(samplePath, innerApp);

const httpRewiredServer = await new Promise<http.Server>(resolve => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not asking but if you're so compelled, a follow-up PR that DRYs up these tests would sure be very much welcomed.

@abernix abernix changed the base branch from master to release-2.5.0 April 5, 2019 11:05
@abernix abernix added this to the Release 2.5.0 milestone Apr 5, 2019
@abernix abernix merged commit 47620dd into apollographql:release-2.5.0 Apr 5, 2019
@abernix
Copy link
Copy Markdown
Member

abernix commented Apr 5, 2019

Thanks for this PR!

It's been published in apollo-server@2.5.0-alpha.3 — and the various integrations like apollo-server-express, apollo-server-hapi, etc. — of the same version!

@abernix
Copy link
Copy Markdown
Member

abernix commented Apr 5, 2019

Err, sorry, canned copy-paste for releases. This is only on apollo-server-express. 😄

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants