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 streaming server functions, and precompress assets in release mode #2121

Merged
merged 1 commit into from Mar 21, 2024

Conversation

ealmloff
Copy link
Member

@ealmloff ealmloff commented Mar 20, 2024

Our compression layer is breaking streaming server functions. This PR removes the default compression layer and instead only compresses static assets in release mode.

It also adds a more compelling demo for server functions streaming a chat response for an LLM developed for the blog post. The demo is a bit dependency heavy for CI, pulled out into a separate repo

Closes #1947

@ealmloff ealmloff added bug Something isn't working fullstack related to the fullstack crate labels Mar 20, 2024
@ealmloff ealmloff changed the title Fix streaming server functions, precompress assets in release mode, and add a better streaming server function demo Fix streaming server functions, and precompress assets in release mode Mar 20, 2024
@jkelleyrtp jkelleyrtp merged commit e012d81 into DioxusLabs:main Mar 21, 2024
6 of 9 checks passed
@ealmloff ealmloff deleted the server-fn-streaming-demo branch March 21, 2024 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fullstack related to the fullstack crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use of gzip compression slows down asset downloads considerably
2 participants