W
Wasp2d ago
nitish30

Integration with existing nextjs frontend

Hi everyone, Is it possible to integrate existing nextjs frontend code to opensaas. Any documentation?
1 Reply
kapa.ai
kapa.ai2d ago
Hi @nitish30. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I apologize, but based on the knowledge sources provided, it is not possible to directly integrate an existing Next.js frontend with OpenSaaS or Wasp. Wasp and Next.js are separate frameworks that are not designed to work together in that way. Wasp is built to work with React, Node.js, and Prisma. It does not currently support Next.js integration. As mentioned in one of the Discord conversations: Discord Thread "Adding Next to Wasp is not possible nor do we have plans to do it. It's not really how these two technologies were meant to work." The Wasp team has considered adding server-side rendering (SSR) support in the future, potentially through Next.js, but this is not currently implemented: Github Issue: Server side rendering (SSR) If you need SEO benefits or server-side rendering capabilities that Next.js provides, one suggestion from the Wasp team is to use a separate technology for your landing page or public-facing parts of your site, while using Wasp for the core application: Discord Thread "honestly - landing page in nextjs and wasp for the core application sounds like a solid plan" If you're looking to use OpenSaaS, it's designed to work with Wasp's existing setup using React. Integrating an existing Next.js frontend would likely require significant reworking of your codebase to fit the Wasp/OpenSaaS structure. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @nitish30, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?

Did you find this page helpful?