Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit dd483fd

Browse files
committed
fix(find-nextjs-project-root.ts): Changed to async function because of use server.
1 parent 7ab4806 commit dd483fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_internal/utils/find-nextjs-project-root.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as fs from 'fs';
44
import * as path from 'path';
55
import { isServer } from './helper';
66

7-
export function findNextJsProjectRoot(startPath: string): string | null {
7+
export async function findNextJsProjectRoot(startPath: string): Promise<string | null> {
88
if (!isServer) return null;
99
let currentPath = startPath;
1010
while (currentPath !== '/') {

0 commit comments

Comments
 (0)