Skip to content

Conversation

@Skn0tt
Copy link
Contributor

@Skn0tt Skn0tt commented Nov 2, 2022

addresses #4569

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Nov 2, 2022
@Skn0tt Skn0tt changed the title fix: add streaming mode for requests without etag generation fix: ensure HMR requests can be streamed Nov 2, 2022
@github-actions
Copy link

github-actions bot commented Nov 2, 2022

📊 Benchmark results

Comparing with 1ab07f0

Package size: 247 MB

⬆️ 0.00% increase vs. 1ab07f0

^                  245 MB  241 MB  241 MB  241 MB  247 MB  247 MB  247 MB  247 MB 
│  241 MB  241 MB   ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐    ┌──┐  
│   ┌──┐    ┌──┐    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
│   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |▒▒|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend

@Skn0tt
Copy link
Contributor Author

Skn0tt commented Nov 2, 2022

tested this locally with a fresh Nuxt app. can confirm that HMR is broken on main, but works with this change.

@Skn0tt
Copy link
Contributor Author

Skn0tt commented Nov 2, 2022

the test I added fails on main. so while it doesn't test HMR in particular, it should still ensure we don't break streaming responses in the future.

@Skn0tt Skn0tt marked this pull request as ready for review November 2, 2022 14:56
eduardoboucas
eduardoboucas previously approved these changes Nov 2, 2022
Copy link
Member

@eduardoboucas eduardoboucas 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!

@Skn0tt
Copy link
Contributor Author

Skn0tt commented Nov 2, 2022

@eduardoboucas thanks for the review! could I get another ✅? had to update a snapshot (see #5194 (comment)).

eduardoboucas
eduardoboucas previously approved these changes Nov 2, 2022
@malcolmmurdock
Copy link

Can confirm the change to proxy.cjs fixes hot reload for netlify dev in our Nuxt 2 app.

@Skn0tt Skn0tt merged commit 9741537 into main Nov 4, 2022
@Skn0tt Skn0tt deleted the fix-4569 branch November 4, 2022 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug code to address defects in shipped code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants