I am currently working on integrating a Next.js application into an existing HTML page. My objective is to render Next.js components within this HTML page by importing a JavaScript file (generated from the Next.js application) into a tag. But, alternative approach is also fine.
Is it possible to bundle the Next.js app into a single JavaScript file?
I have tried the Next.js export feature, however, it doesn’t bundle everything into a single file. I’m unsure how to proceed with rendering the application in an HTML page.
Any insights, recommendations, or alternative approaches would be greatly appreciated.
Thank you in advance for your assistance!
exceptione is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.