Skip to content

Commit

Permalink
fix: support Blobs consistency in local dev (#6384)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas authored Feb 14, 2024
1 parent a0f7247 commit a5077e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/edge-functions/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const initializeProxy = async ({

if (blobsContext?.edgeURL && blobsContext?.token) {
req.headers[headers.BlobsInfo] = Buffer.from(
JSON.stringify({ url: blobsContext.edgeURL, token: blobsContext.token }),
JSON.stringify({ url: blobsContext.edgeURL, url_uncached: blobsContext.edgeURL, token: blobsContext.token }),
).toString('base64')
}

Expand Down
1 change: 1 addition & 0 deletions src/lib/functions/netlify-function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ export default class NetlifyFunction {
if (this.blobsContext) {
const payload = JSON.stringify({
url: this.blobsContext.edgeURL,
url_uncached: this.blobsContext.edgeURL,
token: this.blobsContext.token,
})

Expand Down

1 comment on commit a5077e1

@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,283
  • Package size: 281 MB
  • Number of ts-expect-error directives: 1,180

Please sign in to comment.