Skip to content

Commit 824879c

Browse files
committed
fix: buildFallbackError
1 parent ff21d1f commit 824879c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export default class HotReloaderRspack extends HotReloaderWebpack {
3434
private isEdgeServerCacheEnabled = false
3535

3636
public async afterCompile(multiCompiler: MultiCompiler): Promise<void> {
37+
await super.buildFallbackError()
38+
3739
const rspackStartSpan = this.hotReloaderSpan.traceChild(
3840
'rspack-after-compile'
3941
)
@@ -170,7 +172,7 @@ export default class HotReloaderRspack extends HotReloaderWebpack {
170172
if (entry.status !== BUILT) return
171173
const result =
172174
/^(client|server|edge-server)@(app|pages|root)@(.*)/g.exec(entryName)
173-
const [, key /* pageType */, , page] = result! // this match should always happen
175+
const [, key /* pageType */, ,] = result! // this match should always happen
174176
if (key === 'client' && !this.isClientCacheEnabled) return
175177
if (key === 'server' && !this.isServerCacheEnabled) return
176178
if (key === 'edge-server' && !this.isEdgeServerCacheEnabled) return

0 commit comments

Comments
 (0)