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

CompressionStream / DecompressionStream support? #750

Open
irvinebroque opened this issue Dec 23, 2023 · 0 comments
Open

CompressionStream / DecompressionStream support? #750

irvinebroque opened this issue Dec 23, 2023 · 0 comments

Comments

@irvinebroque
Copy link

Today, if you try to use the CompressionStream or DecompressionStream APIs within edge runtime, you get the following error:

Error: A Node.js API is used (CompressionStream) which is not supported in the Edge Runtime.
Learn more: https://nextjs.org/docs/api-reference/edge-runtime

Screenshot 2023-12-23 at 2 20 23 PM

CompressionStream is not listed here in the Edge Runtime API docs.

Is this intentional? Or maybe just accidental gating of something that in practice could actually work if ungated?

Given that Edge Runtime supports the Web Streams API, it seems logical that the Compression Streams API would be supported?

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

No branches or pull requests

1 participant