From 6d75815dc70fdfe75e16138bbf4ee151fd4ea0a7 Mon Sep 17 00:00:00 2001 From: "Sebastian \"Sebbie\" Silbermann" Date: Thu, 17 Oct 2024 21:26:32 +0200 Subject: [PATCH] Ensure next-dev-server usages can be found (#71423) --- packages/next/src/server/next.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/next/src/server/next.ts b/packages/next/src/server/next.ts index 83683ab617c3e2..7ebfef9dfa1c40 100644 --- a/packages/next/src/server/next.ts +++ b/packages/next/src/server/next.ts @@ -169,7 +169,8 @@ export class NextServer { ): Promise { let ServerImplementation: typeof Server if (options.dev) { - ServerImplementation = require('./dev/next-dev-server').default + ServerImplementation = require('./dev/next-dev-server') + .default as typeof import('./dev/next-dev-server').default } else { ServerImplementation = await getServerImpl() }