-
Notifications
You must be signed in to change notification settings - Fork 7
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
Automatically set stream: 'web'
#31
Comments
Is this still relevant? |
Yea, I think so: |
I'm wondering if this fix could have made the current issue deprecated. |
Correct me if I'm wrong but I don't think we can convert a Node.js stream to a Web stream. Fundamentally, |
We can, there even is a native way to do it with |
Oh, nice, ok we can try that then 👌 |
One drawback is that it's labeled as experimental and, in general, it may cause issues? Do we strictly need to convert? Maybe it would be wiser to tell |
I wouldn't worry to much about it being experimental, it has been here for multiple years now. |
👍 |
Streams are quite complex, so I'd even say there is a risk implementing a fallback disincentivizes doing it right. If there is a use case for falling back it's good to know we can. |
To avoid this error: #30.
See https://vike.dev/stream.
Let's do this after we make
vike-node
a Vike extension.Note
It's currently a Vite plugin and not a Vike extension. We'll be able to make it a Vike extension after we implemented the Vike CLI.
Edit: instead of using
stream
let's create a new setttingstreamType: 'node' | 'web'
, so that the user can still enable/disable streaming.The text was updated successfully, but these errors were encountered: