Skip to content

Commit

Permalink
Use NextJsHotReloaderInterface in router-server
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Sep 13, 2023
1 parent 6111845 commit 8b4a6cc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/next/src/server/lib/router-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import {
PHASE_DEVELOPMENT_SERVER,
PERMANENT_REDIRECT_STATUS,
} from '../../shared/lib/constants'
import type { NextJsHotReloaderInterface } from '../dev/hot-reloader-types'

const debug = setupDebug('next:router-server:main')

Expand Down Expand Up @@ -134,11 +135,7 @@ export async function initialize(opts: {
;(global as any)._nextDevHandlers = {
async ensurePage(
dir: string,
match: Parameters<
InstanceType<
typeof import('../dev/hot-reloader-webpack').default
>['ensurePage']
>[0]
match: Parameters<NextJsHotReloaderInterface['ensurePage']>[0]
) {
const curDevInstance = devInstances[dir]
// TODO: remove after ensure is pulled out of server
Expand Down

0 comments on commit 8b4a6cc

Please sign in to comment.