Skip to content

Commit af1ddbb

Browse files
committed
chore: changes from review
1 parent cbe749a commit af1ddbb

File tree

5 files changed

+186
-151
lines changed

5 files changed

+186
-151
lines changed

package-lock.json

+51-37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"dependencies": {
5656
"@netlify/functions": "^0.11.0",
5757
"@netlify/ipx": "^0.0.8",
58-
"@vercel/node": "^1.11.2-canary.4",
58+
"@vercel/node-bridge": "^2.1.0",
5959
"chalk": "^4.1.2",
6060
"fs-extra": "^10.0.0",
6161
"globby": "^11.0.4",
@@ -80,6 +80,7 @@
8080
"@types/fs-extra": "^9.0.13",
8181
"@types/jest": "^27.0.2",
8282
"@types/mocha": "^9.0.0",
83+
"@types/node": "^17.0.10",
8384
"babel-jest": "^27.2.5",
8485
"cpy": "^8.1.2",
8586
"cypress": "^9.0.0",

src/helpers/functions.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { NetlifyConfig, NetlifyPluginConstants } from '@netlify/build'
2+
import bridgeFile from '@vercel/node-bridge'
23
import { copyFile, ensureDir, writeFile, writeJSON } from 'fs-extra'
34
import type { ImageConfigComplete } from 'next/dist/server/image-config'
45
import { join, relative } from 'pathe'
@@ -12,8 +13,6 @@ export const generateFunctions = async (
1213
appDir: string,
1314
): Promise<void> => {
1415
const functionsDir = INTERNAL_FUNCTIONS_SRC || FUNCTIONS_SRC
15-
const bridgeFile = require.resolve('@vercel/node/dist/bridge')
16-
1716
const functionDir = join(process.cwd(), functionsDir, HANDLER_FUNCTION_NAME)
1817
const publishDir = relative(functionDir, join(process.cwd(), PUBLISH_DIR))
1918

0 commit comments

Comments
 (0)