Skip to content

Commit 2bdc0e7

Browse files
committed
chore: fix imports
1 parent 53cd6c3 commit 2bdc0e7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/templates/getHandler.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
import { HandlerContext, HandlerEvent } from '@netlify/functions'
2-
import { Bridge } from '@vercel/node-bridge/bridge'
32
// Aliasing like this means the editor may be able to syntax-highlight the string
3+
import type { Bridge as NodeBridge } from '@vercel/node-bridge/bridge'
44
import { outdent as javascript } from 'outdent'
55

66
import type { NextConfig } from '../helpers/config'
77

88
import type { NextServerType } from './handlerUtils'
99

1010
/* eslint-disable @typescript-eslint/no-var-requires */
11+
1112
const { promises } = require('fs')
1213
const { Server } = require('http')
1314
const path = require('path')
1415
// eslint-disable-next-line node/prefer-global/url, node/prefer-global/url-search-params
1516
const { URLSearchParams, URL } = require('url')
1617

18+
const { Bridge } = require('@vercel/node-bridge/bridge')
19+
1720
const { augmentFsModule, getMaxAge, getMultiValueHeaders, getNextServer } = require('./handlerUtils')
1821
/* eslint-enable @typescript-eslint/no-var-requires */
1922

@@ -48,8 +51,8 @@ const makeHandler = (conf: NextConfig, app, pageRoot, staticManifest: Array<[str
4851

4952
// We memoize this because it can be shared between requests, but don't instantiate it until
5053
// the first request because we need the host and port.
51-
let bridge: Bridge
52-
const getBridge = (event: HandlerEvent): Bridge => {
54+
let bridge: NodeBridge
55+
const getBridge = (event: HandlerEvent): NodeBridge => {
5356
if (bridge) {
5457
return bridge
5558
}

0 commit comments

Comments
 (0)