Skip to content

Commit

Permalink
Update find-pages-dir.ts
Browse files Browse the repository at this point in the history
Co-Authored-By: Jiachi Liu <4800338+huozhi@users.noreply.github.com>
  • Loading branch information
timneutkens and huozhi committed May 2, 2022
1 parent b4af8fd commit a4004df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/lib/find-pages-dir.ts
Expand Up @@ -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
Expand Down

0 comments on commit a4004df

Please sign in to comment.