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

support third-party connection strings #166

Merged

Conversation

dferber90
Copy link
Collaborator

Supports external connection strings, except for just ones pointed to edge-config.vercel.com.

We keep supporting edge-config.vercel.com as the main way to connect to Edge Configs, and as the only way we optimize. But we now also support having external connection strings.

The reason we support external connection strings is that it makes testing
edge config really straightforward. Users can provide connection strings
pointing to their own servers and then either have a custom server
return the desired values or even intercept requests with something like
msw.

To allow interception we need a custom connection string as the
edge-config.vercel.com connection string might not always go over
the network, so msw would not have a chance to intercept.

@changeset-bot
Copy link

changeset-bot bot commented May 22, 2023

🦋 Changeset detected

Latest commit: eddd5af

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

@vercel
Copy link

vercel bot commented May 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
vercel-storage-next-integration-test-suite ✅ Ready (Inspect) Visit Preview May 24, 2023 11:14am

@dferber90 dferber90 requested a review from a team May 22, 2023 12:06
@dferber90 dferber90 force-pushed the dferber/fla-649-make-edge-config-sdk-testable-from-user branch from abdcd21 to a95bb5b Compare May 22, 2023 12:08
@dferber90 dferber90 force-pushed the dferber/fla-649-make-edge-config-sdk-testable-from-user branch from a95bb5b to 922c38c Compare May 22, 2023 12:11
@dferber90 dferber90 merged commit 7944205 into main May 24, 2023
10 checks passed
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.

None yet

2 participants