From a4004df8e2e9f1c47c36751a4e14f7c2e845170b Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Mon, 2 May 2022 14:33:02 +0200 Subject: [PATCH] Update find-pages-dir.ts Co-Authored-By: Jiachi Liu <4800338+huozhi@users.noreply.github.com> --- packages/next/lib/find-pages-dir.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/lib/find-pages-dir.ts b/packages/next/lib/find-pages-dir.ts index 852888001288..862849fd00de 100644 --- a/packages/next/lib/find-pages-dir.ts +++ b/packages/next/lib/find-pages-dir.ts @@ -10,7 +10,7 @@ export const existsSync = (f: string): boolean => { } } -function findDir(dir: string, name: string): string | null { +function findDir(dir: string, name: 'pages' | 'root'): string | null { // prioritize ./${name} over ./src/${name} let curDir = path.join(dir, name) if (existsSync(curDir)) return curDir