Skip to content

Commit

Permalink
fix(deps): update version of edge functions bootstrap (#6015)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas authored Sep 21, 2023
1 parent c66f301 commit c38a839
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/lib/edge-functions/bootstrap.mjs
Original file line number Diff line number Diff line change
@@ -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
12 changes: 3 additions & 9 deletions tests/integration/200.command.dev.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand All @@ -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')
})
})
})
Expand Down

2 comments on commit c38a839

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,365
  • Package size: 366 MB

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,365
  • Package size: 366 MB

Please sign in to comment.