I’ll start by saying I understand that the premise of my question is inherently the opposite of what a static website is.
Basically I would like to have a site where the user can provide some inputs, submit a form, and then a JS script would run server side and pass the results back to be then displayed to the end user. The reasoning is that I’d like to hide the JS code itself as it could be seen as proprietary. I’m already minifying the code, but simple descramblers would probably undo the minification easily.
The rest of the site functions perfectly as a static website and is perfect to my needs, which is why I’m hesitant to start from scratch to build a dynamic site.
Do you know any way that this is possible?