Skip to content

Commit fe8c432

Browse files
remove unnecessary await when calling findPagesDir (#45807)
## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] [e2e](https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs) tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
1 parent b84ca05 commit fe8c432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/cli/next-dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const handleSessionStop = async () => {
6161
typeof traceGlobals.get('pagesDir') === 'undefined' ||
6262
typeof traceGlobals.get('appDir') === 'undefined'
6363
) {
64-
const pagesResult = await findPagesDir(dir, !!config.experimental.appDir)
64+
const pagesResult = findPagesDir(dir, !!config.experimental.appDir)
6565
appDir = !!pagesResult.appDir
6666
pagesDir = !!pagesResult.pagesDir
6767
}

0 commit comments

Comments
 (0)