Static routes which start on dot character aren't served properly

Route example:

router.get('/.my-route/file.txt', ({ serveStatic }) => {

After deployment if I try opening the file it responds with the error like this:

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Message>Access Denied</Message>

Though it’s served fine locally and when going by non-edge permalink.

Please assist.

the issue is not present when the path which starts on dot is served from the project root directly:
instead of:

@egor.mesyats We were not able to replicate this by using a directory that starts with a dot at the root or nested elsewhere in the path. I suspect there is some other issue with your project.