Skip to content

Conversation

dferber90
Copy link
Collaborator

@dferber90 dferber90 commented Jun 16, 2025

This is an experimental version of @vercel/edge-config that embeds the Edge Configs at build time.

For this experimental version to work, you'll need to run pnpm edge-config before your application builds. This is only necessary for the experimental version and will download all connected edge configs to /tmp/edge-config.

The SDK will then try to read any Edge Config from that folder at build time so it will consistently use the same, local version.

The package uses /* webpackIgnore: true */ when importing the local edge configs using dynamic imports to prevent bundling them, as the bundle might otherwise exceed the Edge Functions size limits.

Complexifiers

  • preloading: embedded vs layered edge config
  • HEAD vs GET (has() vs get())
  • full config cache vs item cache
  • streaming vs non-streaming
  • ts header vs no header
  • background refresh
  • etag http cache

Optimizations

  • avoid reading keys we know don't exist
  • reuse knowledge from has() for get() and vice versa
  • stream only needs to send edge config if it wasn't preloaded (once we use streaming in prod)

Copy link

changeset-bot bot commented Jun 16, 2025

🦋 Changeset detected

Latest commit: 08a945b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@vercel/edge-config Minor
vercel-storage-integration-test-suite Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jun 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
vercel-storage-next-integration-test-suite Ready Ready Preview Sep 29, 2025 9:12am

Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​vercel/​functions@​2.2.51001007198100
Addedeventsource-client@​1.2.09810010089100

View full report

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.

1 participant