What has been your experience using NextJS + Tauri? #6083
-
Hello! I'm looking to start a new Tauri project. I'm wondering whether I should use NextJS or React. I've used both for personal projects, but I notice that NextJS runs a lot slower in development mode. How has your experience been with Tauri + NextJS? Does it take a long time to start up? Does HMR work well? Would love to hear your thoughts! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Yes, just like in a standalone nextjs app, it's just a heavy dev environment, and it uses webpack (i'm not taking turbopack into account yet) which is also pretty slow.
Yes, Tauri isn't any different from any normal browser in that regard. The main problem imo with nextjs in a tauri app, is its SSR-first nature. For nextjs to work in tauri you need to use its SSG mode ( Personally i just go with vite + react, but i also prefer react-router (or similar) over file-based routers like the one in nextjs, so take that with a grain of salt i guess. |
Beta Was this translation helpful? Give feedback.
-
still no info about using ssr? |
Beta Was this translation helpful? Give feedback.
Yes, just like in a standalone nextjs app, it's just a heavy dev environment, and it uses webpack (i'm not taking turbopack into account yet) which is also pretty slow.
Yes, Tauri isn't any different from any normal browser in that regard.
The main problem imo with nextjs in a tauri app, is its SSR-first nature. For nextjs to work in tauri you need to use its SSG mode (
next export
) which can get a bit annoying at times.Personally i just go with vite + react, but i also prefer react-router (or similar) over file-based routers like the one in nextjs, so take that with a grain of salt i guess.