Skip to content

Commit 6cbaddf

Browse files
authored
Configure correct app dir when building /_error fallback in dev (#75354)
1 parent a016ea3 commit 6cbaddf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/next/src/build/webpack-config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,13 @@ export default async function getBaseWebpackConfig(
304304
dev?: boolean
305305
entrypoints: webpack.EntryObject
306306
isDevFallback?: boolean
307-
pagesDir?: string
307+
pagesDir: string | undefined
308308
reactProductionProfiling?: boolean
309309
rewrites: CustomRoutes['rewrites']
310310
originalRewrites: CustomRoutes['rewrites'] | undefined
311311
originalRedirects: CustomRoutes['redirects'] | undefined
312312
runWebpackSpan: Span
313-
appDir?: string
313+
appDir: string | undefined
314314
middlewareMatchers?: MiddlewareMatcher[]
315315
noMangling?: boolean
316316
jsConfig: any

packages/next/src/server/dev/hot-reloader-webpack.ts

+1
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@ export default class HotReloaderWebpack implements NextJsHotReloaderInterface {
692692
config: this.config,
693693
buildId: this.buildId,
694694
encryptionKey: this.encryptionKey,
695+
appDir: this.appDir,
695696
pagesDir: this.pagesDir,
696697
rewrites: {
697698
beforeFiles: [],

0 commit comments

Comments
 (0)