Skip to content
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

fix(gatsby-plugin-nginx): Fix proxy pass when toPath has port numbers on it #830

Merged
merged 1 commit into from
Jul 22, 2021

Conversation

guilhermebruzzi
Copy link
Contributor

What's the purpose of this pull request?

Before this fix the new test would broke with:

-           "https://mylogs-proxy.endpoint.com:8088/logs$is_args$args",
+           "https://mylogs-proxy.endpoint.com$1/logs$is_args$args",

Meaning that this nginx plugin is replacing port number and not only :splat or :* values

How to test it?

Running yarn test on gatsby-plugin-nginx package

@guilhermebruzzi guilhermebruzzi requested a review from a team as a code owner July 21, 2021 22:00
@netlify
Copy link

netlify bot commented Jul 21, 2021

✔️ Deploy Preview for storeui ready!

🔨 Explore the source changes: 3ca96bd

🔍 Inspect the deploy log: https://app.netlify.com/sites/storeui/deploys/60f89903184f23000717cd3f

😎 Browse the preview: https://deploy-preview-830--storeui.netlify.app

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3ca96bd:

Sandbox Source
Store UI Typescript Configuration

Copy link
Contributor

@tlgimenes tlgimenes left a comment

Choose a reason for hiding this comment

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

nice!

@guilhermebruzzi guilhermebruzzi merged commit 574f9bd into master Jul 22, 2021
@guilhermebruzzi guilhermebruzzi deleted the fix/nginx-when-path-has-port-number branch July 22, 2021 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants