styfle / packagephobia

⚖️ Find the cost of adding a new dependency to your project
https://packagephobia.com
MIT License
2.14k stars 45 forks source link

fix: 404 not found should avoid function invocation #1018

Closed styfle closed 1 year ago

styfle commented 1 year ago

This will avoid serverless function invocations for 404s.

For example, the function logs show attackers looking for non-existing files such as:

image

Instead of rewriting all paths, we can rewrite only paths we know are handled by the function.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
packagephobia ✅ Ready (Inspect) Visit Preview Nov 2, 2023 2:21am