diff --git a/package-lock.json b/package-lock.json index 8bbdcddbff..2a099ece17 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "@netlify/config": "^23.2.0", "@netlify/edge-bundler": "^14.2.2", "@netlify/edge-functions": "^2.15.6", + "@netlify/edge-functions-bootstrap": "^2.14.0", "@netlify/eslint-config-node": "^7.0.1", "@netlify/functions": "^4.1.10", "@netlify/serverless-functions-api": "^2.1.3", diff --git a/package.json b/package.json index d869493268..1fe2cf855e 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "@netlify/build": "^34.2.5", "@netlify/config": "^23.2.0", "@netlify/edge-bundler": "^14.2.2", + "@netlify/edge-functions-bootstrap": "^2.14.0", "@netlify/edge-functions": "^2.15.6", "@netlify/eslint-config-node": "^7.0.1", "@netlify/functions": "^4.1.10", diff --git a/tests/utils/fixture.ts b/tests/utils/fixture.ts index 3ddd787dcb..a863c253a3 100644 --- a/tests/utils/fixture.ts +++ b/tests/utils/fixture.ts @@ -3,6 +3,7 @@ import { assert, vi } from 'vitest' import { type NetlifyPluginConstants, type NetlifyPluginOptions } from '@netlify/build' import { resolveConfig as resolveNetlifyConfig } from '@netlify/config' import { bundle, serve } from '@netlify/edge-bundler' +import { getURL as getBootstrapURL } from '@netlify/edge-functions-bootstrap/version' import { zipFunctions } from '@netlify/zip-it-and-ship-it' import { execaCommand } from 'execa' import getPort from 'get-port' @@ -32,8 +33,7 @@ import { BLOB_TOKEN } from './constants.mjs' import { type FixtureTestContext } from './contexts.js' import { setNextVersionInFixture } from './next-version-helpers.mjs' -const bootstrapURL = - 'https://6877afcf20679a00086bab1c--edge.netlify.com/bootstrap/index-combined.ts' +const bootstrapURL = await getBootstrapURL() const actualCwd = await vi.importActual('process').then((p) => p.cwd()) const eszipHelper = join(actualCwd, 'tools/deno/eszip.ts')