Choosing Between Bun's `--public-dir` Flag and Custom Middleware for Preventing Accidental Public File Access
Goal: Prevent Bun's static file server from serving files outside the intended directory when hosting a web application. Two documented approaches exist: using the `bun serve --public-dir` flag, which relies on Bun's internal path normalization to automatically return a 404 response for any request that attempts to traverse outside the specified directory, a