handlePage takes the URL parameter "dir" without properly converting it to a file path. This results in an incompatibility with filesystems that dont begin the root path with a "/" char.
All URL objects should be converted to an absolute file path using fileURLToPath from the url package included with node.
handlePage
takes the URL parameter "dir" without properly converting it to a file path. This results in an incompatibility with filesystems that dont begin the root path with a "/" char.All URL objects should be converted to an absolute file path using fileURLToPath from the url package included with node.
See https://github.com/withastro/astro/issues/3607