Skip to content

Commit

Permalink
Ensure next-dev-server usages can be found (#71423)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored and samcx committed Oct 18, 2024
1 parent f3d9a23 commit 6d75815
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/next/src/server/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ export class NextServer {
): Promise<Server> {
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()
}
Expand Down

0 comments on commit 6d75815

Please sign in to comment.