Next.js/Suspense on Linux
Answered
Harlequin Duck posted this in #help-forum
Harlequin DuckOP
I have Suspense components like:
if i run:
on Windowsit it works perfectly
if i run :
on Linux, the suspense fallback never shows, instead the page loads until the async component is loaded.
Also all
Is there something special i need to do on Linux?
I tried 2 different Linux machines both Ubuntu. Also the same happens in WSL.
<Suspense
fallback={<div className="..." />}
>
<DataAtable/> //Async component in another file, nothing here is a "use client" component
</Suspense>
if i run:
npm run build
npm run start
on Windowsit it works perfectly
if i run :
npm run build
npm run start
on Linux, the suspense fallback never shows, instead the page loads until the async component is loaded.
Also all
<Link/>
components take 1 to 2 seconds to jump to the new page.Is there something special i need to do on Linux?
I tried 2 different Linux machines both Ubuntu. Also the same happens in WSL.
Answered by Harlequin Duck
well my nginx had a few ignored bus but i guess the most important part was adding:
proxy_buffering off;
now streaming with suspense works :D
proxy_buffering off;
now streaming with suspense works :D
2 Replies
Harlequin DuckOP
nvm. the problem is not linux but my nginx
Harlequin DuckOP
well my nginx had a few ignored bus but i guess the most important part was adding:
proxy_buffering off;
now streaming with suspense works :D
proxy_buffering off;
now streaming with suspense works :D
Answer