render nextjs application in a script tag
Unanswered
kedarvyas posted this in #help-forum
Hey guys,
I have a case where I have to render my whole nextjs application in a HTML script tag
I read online that I have to build the application with
but my question is after that which js file should I choose to keep in the src of the script tag
I chose
what should I do now?
for the context I made a chatbot and have to render it in my client's application just by giving the script tag to him which he'll add in his website's code
I have a case where I have to render my whole nextjs application in a HTML script tag
I read online that I have to build the application with
next build and then export it with module.exports = {
output: 'export',
};but my question is after that which js file should I choose to keep in the src of the script tag
I chose
.next/static/chunks/app/page.js but it didn't seemed to workwhat should I do now?
for the context I made a chatbot and have to render it in my client's application just by giving the script tag to him which he'll add in his website's code