fix: path handling inconsistencies (#2482)

This commit is contained in:
Marvin Hagemeister
2024-06-03 15:03:48 +02:00
committed by GitHub
parent 9347b84cba
commit 2fb8606e9e
7 changed files with 49 additions and 17 deletions
+3 -1
View File
@@ -65,7 +65,9 @@ export async function fsRoutes<State>(
const ignore = options.ignoreFilePattern ?? [TEST_FILE_PATTERN];
const fs = options._fs ?? fsAdapter;
const dir = options.dir ? parseRootPath(options.dir) : app.config.root;
const dir = options.dir
? parseRootPath(options.dir, fs.cwd())
: app.config.root;
const islandDir = path.join(dir, "islands");
const routesDir = path.join(dir, "routes");