#Taking build in a customised way

11 messages · Page 1 of 1 (latest)

toxic geyser
#

Hey all, I need to create the build for my next app. I want to have the JavaScript files in one separate file, named "ichatbotFrame.js," and the HTML in another separate file "ichatbotFrame.html". How do I do that?
I have tried but I'm not getting it.. If anyone knows gimme the next.config please

azure drumBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

scenic heart
#

already told you. This is not how nextjs.

torn saddle
#

but you can try to tinker with some webpack config to get what you need. I've never tried this so idk much about it

scenic heart
#

If you arent even using the only things next provides, you should probably not be using it. React Server Components are not a nextjs thing. Next just builds on top of it. Exporting a file in your angular projects CANNOT provide you ANY benefits of react server-side rendering or nextjs

toxic geyser
#

I have already tried this but it went on loop like it creates all the files in a same name like ichatbotFrame.js like that

scenic heart
#

You can do static export to generate the html and js files for you. That however is basically getting rid of much of what nextjs can provide you

torn saddle
#

If I am not wrong, to generate only one JS file you will need to change the webpack config used by nextjs internally

scenic heart
#

also you want one page, which definitely isnt gonna happen even with static export. Secondly, you arent using Server-side rendering at all or any dynamic content OR navigation OR caching or any kind of optimization.

So what are u gonna use nextjs for exactly>