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

fix(sb_workers): allow extra context to be passed in from js land #440

Merged
merged 1 commit into from
Nov 9, 2024

Conversation

nyannyacha
Copy link
Collaborator

@nyannyacha nyannyacha commented Nov 9, 2024

What kind of change does this PR introduce?

Enhancement

Description

The purpose of this is to allow bootstrapping to be more granular, by allowing extra context to be passed in from js land.

We've observed instances of using the Deno.readFileSync API in prod, but because bootstrap.js is hardcoded to block these APIs, it was difficult to react quickly to unblock them.

await EdgeRuntime.userWorkers.create({
    ..
    context: {
        useReadSyncFileAPI: true
    }
});

@nyannyacha nyannyacha enabled auto-merge (squash) November 9, 2024 00:53
@nyannyacha nyannyacha merged commit 1bb7f70 into supabase:main Nov 9, 2024
3 checks passed
Copy link

github-actions bot commented Nov 9, 2024

🎉 This PR is included in version 1.61.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@nyannyacha nyannyacha deleted the fix-sync-blocklisted branch November 21, 2024 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants