fix: fresh routes not working on windows (#62)

This commit is contained in:
Sylvain Cau
2021-09-26 14:16:29 +02:00
committed by GitHub
parent efdbf9bcb6
commit 5bc35b8b95
+1 -1
View File
@@ -40,7 +40,7 @@ export async function routes(directory: string) {
directory = resolve(directory);
const files = [];
const pagesDir = join(directory, "./pages");
const pagesUrl = new URL(pagesDir, "file:///");
const pagesUrl = toFileUrl(pagesDir);
const folder = walk(pagesDir, {
includeDirs: false,
includeFiles: true,