Skip to content
Back

Adapter Mismatch Error

  • 0
  • Sites
  • Cloud
mdhruvil
30 Aug, 2025, 10:16

Same as title.

Project includes Next.js API route so I used SSR option for Next.js but I am still getting the error.

TL;DR
Developers discussing an Adapter Mismatch Error in Appwrite. Issues with streaming responses and detecting Next.js as static. Switching to webpack solved the problem for one user. Solution: Try switching to Webpack to resolve the issue.
mdhruvil
30 Aug, 2025, 10:18

Repo I am trying to deploy https://github.com/mdhruvil/gemini-test

mdhruvil
30 Aug, 2025, 10:18

Idk why the appwrite is detecting Next.js as static

mdhruvil
30 Aug, 2025, 10:30

The build directory indeed has a file that utopia-detector checks for nextjs. Reference https://github.com/utopia-php/detector/blob/fc705e3f0e9845f685fe9de7e599c8fc179da616/src/Detection/Rendering/SSR.php#L10

Chirag Aggarwal
30 Aug, 2025, 11:35

cc @Meldiron

Meldiron
30 Aug, 2025, 15:13

Hmm this might be issue with turbopack 🤔 Can you try ti switch to Webpack, see if that resolves the issue?

mdhruvil
30 Aug, 2025, 15:14

Yeah, let me try that

mdhruvil
30 Aug, 2025, 15:20

Yeah, switching to webpack has solved the issue

mdhruvil
30 Aug, 2025, 15:20

cc @Meldiron

Meldiron
30 Aug, 2025, 15:21

Cooool cool cool. good to know. Ill note it down and see if we can make proper fix next week, to support webpack as well

mdhruvil
30 Aug, 2025, 15:21

Sure, Thank you for your help.

mdhruvil
30 Aug, 2025, 15:24

Also, a question does Appwrite Sites support streaming responses ?

mdhruvil
30 Aug, 2025, 15:24

Because in my demo it's not working

mdhruvil
30 Aug, 2025, 15:25

it's just sending demo all at once without streaming

Meldiron
1 Sep, 2025, 06:33

Heyy, not right now, but it's a hot topic so I expect this to come to appwrite soon. As for Hackathon, you can use external services, so you could host function that needs streamed response on, let's say, Deno Deploy. If you need it stateful, you could use Railway. Or anything else you are already familiar with 🙌

mdhruvil
1 Sep, 2025, 07:30

Oh Okay

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more