Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 255371a

Browse files
piehmrstork
andauthored
chore: use bootstrap url from package instead of hardcoding it (#3024)
Co-authored-by: Mateusz Bocian <mrstork@users.noreply.github.com>
1 parent 0e98e86 commit 255371a

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": "^35.0.7",
5454
"@netlify/config": "^24.0.2",
5555
"@netlify/edge-bundler": "^14.5.2",
56+
"@netlify/edge-functions-bootstrap": "^2.14.0",
5657
"@netlify/edge-functions": "^2.17.0",
5758
"@netlify/eslint-config-node": "^7.0.1",
5859
"@netlify/functions": "^4.2.1",

‎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)

AltStyle によって変換されたページ (->オリジナル) /