Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Blobs context to edge functions #6109

Merged
merged 4 commits into from
Oct 31, 2023

Conversation

eduardoboucas
Copy link
Member

Summary

Follow-up to #6101. Extends Blobs context to edge functions.

Part of https://github.com/netlify/pillar-runtime/issues/754.

@eduardoboucas eduardoboucas requested a review from a team as a code owner October 31, 2023 15:12
if (this.runtimeAPIVersion === 2) {
// For functions using the v2 API, we inject the context object into an
// environment variable.
environment.NETLIFY_BLOBS_CONTEXT = Buffer.from(JSON.stringify(this.blobsContext)).toString('base64')
Copy link
Member Author

Choose a reason for hiding this comment

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

I realised we don't need this. The bootstrap layer can take the data from the client context and set the environment variable, like it's doing in production.

Copy link

github-actions bot commented Oct 31, 2023

📊 Benchmark results

Comparing with 786b3c5

  • Dependency count: 1,373 (no change)
  • Package size: 381 MB (no change)

mraerino
mraerino previously approved these changes Oct 31, 2023
@eduardoboucas eduardoboucas enabled auto-merge (squash) October 31, 2023 15:30
ascorbic
ascorbic previously approved these changes Oct 31, 2023
@eduardoboucas eduardoboucas dismissed stale reviews from ascorbic and mraerino via 3a24dfa October 31, 2023 16:17
@eduardoboucas eduardoboucas merged commit c770ba0 into main Oct 31, 2023
63 checks passed
@eduardoboucas eduardoboucas deleted the feat/simplify-blobs-context branch October 31, 2023 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants