Skip to content

Commit

Permalink
Ensure next-dev-server usages can be found
Browse files Browse the repository at this point in the history
It looked like it was never referenced because we only `require()` it.
Now we import the type to check soundness
and have it appear as referenced.
  • Loading branch information
eps1lon committed Oct 17, 2024
1 parent a1dbc07 commit 8eb2a51
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 8eb2a51

Please sign in to comment.