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: allow v2 functions to serve /favicon.ico #6145

Merged
merged 3 commits into from
Nov 10, 2023
Merged

fix: allow v2 functions to serve /favicon.ico #6145

merged 3 commits into from
Nov 10, 2023

Conversation

Skn0tt
Copy link
Contributor

@Skn0tt Skn0tt commented Nov 10, 2023

We have this weird edge case, where the functions server was catching all requests to /favicon.ico and prevented them from being served by functions. This PR fixes that, by moving the logic to a place where it only impacts routes that don't have a function assigned.

@Skn0tt Skn0tt self-assigned this Nov 10, 2023
@Skn0tt Skn0tt requested a review from a team as a code owner November 10, 2023 11:30
Copy link

github-actions bot commented Nov 10, 2023

📊 Benchmark results

Comparing with 2547532

  • Dependency count: 1,395 (no change)
  • Package size: 404 MB (no change)

mraerino
mraerino previously approved these changes Nov 10, 2023
Copy link
Member

@mraerino mraerino left a comment

Choose a reason for hiding this comment

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

the change itself is ok, but i'd question if we should have this code at all. we don't have it in prod and i don't see what upside there is for having it locally

@Skn0tt
Copy link
Contributor Author

Skn0tt commented Nov 10, 2023

Agree. I tried finding the original PR that added this, hoping there would be some context on this, but it goes way back to this commit from 2019: 9ffd514
I'm assuming this was copied from some other repository, but I have no idea which.
Let's remove this code, and see if someone screams 🤷

Copy link
Member

@mraerino mraerino left a comment

Choose a reason for hiding this comment

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

🚀

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