Skip to content

Commit c1cc2a7

Browse files
committed
chore: use bootstrap url from package instead of hardcoding it
1 parent ae2e201 commit c1cc2a7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"@netlify/build": "^34.2.5",
5454
"@netlify/config": "^23.2.0",
5555
"@netlify/edge-bundler": "^14.2.2",
56+
"@netlify/edge-functions-bootstrap": "^2.14.0",
5657
"@netlify/edge-functions": "^2.15.6",
5758
"@netlify/eslint-config-node": "^7.0.1",
5859
"@netlify/functions": "^4.1.10",

tests/utils/fixture.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { assert, vi } from 'vitest'
33
import { type NetlifyPluginConstants, type NetlifyPluginOptions } from '@netlify/build'
44
import { resolveConfig as resolveNetlifyConfig } from '@netlify/config'
55
import { bundle, serve } from '@netlify/edge-bundler'
6+
import { getURL as getBootstrapURL } from '@netlify/edge-functions-bootstrap/version'
67
import { zipFunctions } from '@netlify/zip-it-and-ship-it'
78
import { execaCommand } from 'execa'
89
import getPort from 'get-port'
@@ -32,8 +33,7 @@ import { BLOB_TOKEN } from './constants.mjs'
3233
import { type FixtureTestContext } from './contexts.js'
3334
import { setNextVersionInFixture } from './next-version-helpers.mjs'
3435

35-
const bootstrapURL =
36-
'https://6877afcf20679a00086bab1c--edge.netlify.com/bootstrap/index-combined.ts'
36+
const bootstrapURL = await getBootstrapURL()
3737
const actualCwd = await vi.importActual<typeof import('process')>('process').then((p) => p.cwd())
3838
const eszipHelper = join(actualCwd, 'tools/deno/eszip.ts')
3939

0 commit comments

Comments
 (0)