Next.js Discord

Discord Forum

Next.js/Suspense on Linux

Answered
Harlequin Duck posted this in #help-forum
Open in Discord
Avatar
Harlequin DuckOP
I have Suspense components like:
<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
View full answer

2 Replies

Avatar
Harlequin DuckOP
nvm. the problem is not linux but my nginx
Avatar
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
Answer