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 edge-light export condition #176

Merged
merged 1 commit into from
Mar 28, 2023
Merged

feat: add edge-light export condition #176

merged 1 commit into from
Mar 28, 2023

Conversation

stipsan
Copy link
Member

@stipsan stipsan commented Mar 23, 2023

Related to #135.

By adding the new edge-light condition we hopefully become better aligned with Vercel Edge handlers.

It also adds:

import {unstable__environment, unstable__adapter} from '@sanity/client'

Where unstable__environment is node | browser, while unstable__adapter reports node | xhr | fetch.
This'll make it a lot easier to debug and figure out what version of the client is actually ending up in the bundle in novel runtimes and environments 🤔

Copy link
Member

@rexxars rexxars left a comment

Choose a reason for hiding this comment

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

Nice work! Grazie.

@stipsan stipsan merged commit 501e7b6 into main Mar 28, 2023
@stipsan stipsan deleted the add-edge-light branch March 28, 2023 15:14
@github-actions
Copy link
Contributor

🎉 This PR is included in version 5.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants