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: skip pushing site url config for localhost #2949

Closed
wants to merge 1 commit into from

Conversation

sweatybridge
Copy link
Contributor

@sweatybridge sweatybridge commented Dec 6, 2024

What kind of change does this PR introduce?

relates to #2552 (comment)

What is the new behavior?

Skip site_url if it's pointing to localhost.

Additional context

Add any other context or screenshots.

@coveralls
Copy link

coveralls commented Dec 6, 2024

Pull Request Test Coverage Report for Build 12199599714

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.03%) to 59.562%

Files with Coverage Reduction New Missed Lines %
internal/gen/keys/keys.go 5 12.9%
Totals Coverage Status
Change from base Build 12198412388: -0.03%
Covered Lines: 6391
Relevant Lines: 10730

💛 - Coveralls

Comment on lines +222 to +229
func isLoopbackURL(siteURL string) bool {
if parsed, err := url.Parse(siteURL); err == nil {
if ip := net.ParseIP(parsed.Hostname()); ip != nil {
return ip.IsLoopback()
}
}
return false
}
Copy link
Member

Choose a reason for hiding this comment

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

nitpick

Wonder if it might cause issue if you use local aliase like localhost.
But that'll probably work for most of the setup.

@sweatybridge
Copy link
Contributor Author

Closing as probably not needed after we start pushing down envs from vercel.

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.

3 participants