diff --git a/src/lib/edge-functions/bootstrap.mjs b/src/lib/edge-functions/bootstrap.mjs index 881c66453ec..6cef15593ee 100644 --- a/src/lib/edge-functions/bootstrap.mjs +++ b/src/lib/edge-functions/bootstrap.mjs @@ -1,5 +1,5 @@ import { env } from 'process' -const latestBootstrapURL = 'https://64f73321fdd56900083fa618--edge.netlify.com/bootstrap/index-combined.ts' +const latestBootstrapURL = 'https://650bfd807b21ed000893e25c--edge.netlify.com/bootstrap/index-combined.ts' export const getBootstrapURL = () => env.NETLIFY_EDGE_BOOTSTRAP || latestBootstrapURL diff --git a/tests/integration/200.command.dev.test.cjs b/tests/integration/200.command.dev.test.cjs index e5fedb8be13..c3e65e4d311 100644 --- a/tests/integration/200.command.dev.test.cjs +++ b/tests/integration/200.command.dev.test.cjs @@ -238,11 +238,8 @@ export const handler = async function () { if (req.url.includes('?ef=fetch')) { const url = new URL('/origin', req.url) - try { - await fetch(url, {}) - } catch (error) { - return new Response(error, { status: 500 }) - } + + return await fetch(url) } if (req.url.includes('?ef=url')) { @@ -265,10 +262,7 @@ export const handler = async function () { t.deepEqual(await got(`https://localhost:${port}/api/hello`, options).json(), { rawUrl: `https://localhost:${port}/api/hello`, }) - - // the fetch will go against the `https://` url of the dev server, which isn't trusted system-wide. - // this is the expected behaviour for fetch, so we shouldn't change anything about it. - t.regex(await got(`https://localhost:${port}?ef=fetch`, options).text(), /invalid peer certificate/) + t.is(await got(`https://localhost:${port}?ef=fetch`, options).text(), 'origin') }) }) })