Fix file://
path check
#6
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Currently, if a
file://
path gets passed the package assumes that the path is a file and turns it into a directory, butfile://
paths can be directories too. This function should check whether or not thefile://
path is a file before usingdirname()
on it to get the directoryhttps://github.com/BryceRussell/astro-pages/blob/main/package/utils/add-page-dir.ts#L22
The text was updated successfully, but these errors were encountered: