Next.js Discord

Discord Forum

Suspense breaks when deploying anywhere that isn't Vercel

Unanswered
Bosnian Coarse-haired Hound posted this in #help-forum
Open in Discord
Bosnian Coarse-haired HoundOP
I have a next.js project that uses suspense when fetching data.

In my local environment it works perfectly, However, when i deploy it to Azure Static Web App, it stops working.

I found a reddit post about this bug: https://www.reddit.com/r/nextjs/comments/1937v63/suspense_not_working_when_deployed_anywhere_but/

however in my app we're not using azure VM so i can't change the nginx config like the user did in their fix.

In the azure docs it is stated that features like the app router and suspense are supported, so i assume it should work in azure the same way it does on vercel.
https://learn.microsoft.com/en-us/azure/static-web-apps/nextjs#hybrid-nextjs-applications-preview

Is anyone dealing with the same issue?

0 Replies