Currently, I'm in the process of integrating a Next.js application into an existing HTML page. My goal is to display Next.js components on this HTML page by linking a JavaScript file (created from the Next.js application) within a <script tag. However, I am open to considering other methods as well.
Is there a way to package the entire Next.js app into a single JavaScript file?
Although I've attempted using the Next.js export feature, it doesn't consolidate everything into one file. This leaves me uncertain about how to continue with displaying the application on an HTML page.
If you have any insights, suggestions, or alternative methodologies, they would be greatly valued.
Thank you for your help in advance!